i tried to use live chart in the primefaces lib but it doesn't work...
Code: Select all
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="core" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="html" %>
<%@ taglib uri="http://primefaces.prime.com.tr/ui" prefix="p" %>
<core:view>
<html>
<head>
<p:resources />
</head>
<body>
<div id="container">
<p:pieChart
id="abonnes"
value="#{statBean.proportionAbonnes}"
var="item"
live="true"
refreshInterval="5000"
categoryField="#{item.name}"
dataField="#{item.value}" />
</div>
</body>
</html>
</core:view>
The generated source code doesn't have <input type="hidden" id="javax.faces.ViewState" ... /> like the demo source code of a live pieChart.
What's the problem ? pieChart works when i turn live parameter false.
Thanks for all. William Durand