@mlohbihler said:
Can you post your code?
<%--
Mango - Open Source M2M - http://mango.serotoninsoftware.com
Copyright (C) 2006-2009 Serotonin Software Technologies Inc.
@author Matthew Lohbihler
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/.
--%><%@ include file="/WEB-INF/jsp/include/tech.jsp" %>
<%@ taglib prefix="view" tagdir="/WEB-INF/tags/view" %>
<html>
<head>
<link href="resources/common.css" type="text/css" rel="stylesheet"/>
<view:init username="admin"/>
</head>
<body>
<h1>Custom View Example</h1>
<p>
The active components of this example have been commented out. To reactivate, remove the <%-- --%> style
comment tags (but not what is between them!) and replace the view:init username and all xid attributes with valid
values.
</p>
<p>
<b>You will receive errors if you do not provide valid attribute values!</b> Read the error messages for clues about
what needs to be fixed. You can remove these instructions when you are done.
</p>
<p>
You can create as many custom views as you want. Simply create a new JSP file in the main directory (where the
index.jsp is).
</p>
<h3>A simple table of some values</h3>
<table>
<tr>
<!--
A simplePoint tag is used to display the value of a single point.
- xid: the point to use (required)
- disabledValue: the value to display if the point is disabled (defaults to "")
- raw: whether the value should be fully rendered according to the text renderer, or should be provided in its
raw form. For example, a raw numeric is does not include a suffix, a raw multistate is its integer value,
and a raw binary is 0 or 1. (Defaults to false).
-->
<td align="right" style="padding-right:20px">A point value:</td>
<td><view:simplePoint xid="DS_337334" disabledValue="(disabled)"/></td>
</tr>
<tr>
<td align="right" style="padding-right:20px">A raw point value:</td>
<td><view:simplePoint xid="DS_301245" raw="true"/></td>
</tr>
</table>
<!--
Display charts with the chart tag. Include points in the chart with the chartPoint child tag. Most attributes should
require no explanation.
- color: this attribute can be an HTML-style hex, or any color name in the HTML specification.
-->
<h3>A chart</h3>
<view:chart duration="1" durationType="hours" width="800" height="300">
<view:chartPoint xid="DS_3011245" color="#2468AC"/>
</view:chart>
</body>
</html>
sprokkie