My name is Felipe, i'm from Brazil and my english is not so good, so i will try explain my problem but excuse if i miss some words...
So, i have a project and i used the 3.5 Primefaces Version, so i decided to migrate version to 5.0 ... The big problem is that now my pages that contains a poll are with leak memory, i did a simple page to represent this ...
Code: Select all
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:sec="http://www.springframework.org/security/facelets/tags">
<f:view contentType="text/html; charset=ISO-8859-1" locale="#{languageController.localeCode}">
<h:head>
<script type="text/javascript" src="#{request.contextPath}/fusioncharts/fusioncharts.js" />
<script type="text/javascript" src="#{request.contextPath}/fusioncharts/themes/fusioncharts.theme.fint.js" />
</h:head>
<h:body>
<h:form>
<p:poll interval="5" process="@this" widgetVar="poll" update="@form" />
<div id="DivMapId" align="center">
FusionCharts.
</div>
<script type="text/javascript">
if(getChartFromId("MapBrazil")){
getChartFromId("MapBrazil").dispose();
}
FusionCharts.ready(function() {
var instance = new FusionCharts({
"id": "MapBrazil",
"type": "maps/brazilregion",
"renderAt": "DivMapId",
"width": "300",
"height": "300",
"dataFormat": "json",
"dataSource": {}
}).render();
});
</script>
</h:form>
</h:body>
</f:view>
</html>
I use:
JSF 2.0
Primefaces 5.0
Server: Glassfish 3.1.2
Is there any solution? If i pay the Elite Version ( 3.0.5 ) is probaly that i can resolve this problem ?
Thank you !
Felipe