I have to refresh a line chart after i enter parameters and when i click on the commandButton
i try
commandButton with ajax = false
commandButton by default ajax = true
but it does'nt work this is my page :
Code: Select all
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
>
<h:head>
</h:head>
<h:body>
<h:form id="form1">
<p:panel id="panel" header="Paramétres">
<h:panelGrid columns="4" cellpadding="6">
<p:outputLabel for="datedebut" value="Date début" />
<p:calendar id="datedebut" value="#{httpMB.choix.startdate}" pattern="dd/MM/yyyy HH:mm:ss" showOn="button" required="true" />
<p:outputLabel for="datefin" value="Date fin" />
<p:calendar id="datefin" value="#{httpMB.choix.endDate}" pattern="dd/MM/yyyy HH:mm:ss" showOn="button" required="true" />
<p:outputLabel for="host" value="Nom du host" />
<h:inputText id="host" value="#{httpMB.choix.host}" required="true" ></h:inputText>
</h:panelGrid>
<p:commandButton value="Valider" icon="ui-icon-check" actionListener ="#{httpMB.refreshRTTChart}" ajax="false" update=":form1:outlineRtt" >
</p:commandButton>
</p:panel>
<p:chart type="line" id="outlineRtt" model="#{httpMB.dataRTT}" widgetVar="outlineRtt" style="height:400px;"/>
</h:form>
</h:body>
</html>
the method that refresh the lineChart contains the method that creates the lineChart
help please
Thanks