primefaces - update <p:tab only in jsf page -
this question has answer here:
<p:tab title="temperature analysis" rendered="#{!userbean.user.temperaturenotallow}"> <p:outputpanel id="temperatureanalysispanel" > <h:form style="margin-left: 800px"> <h:outputtext value="select y-axis range"></h:outputtext> <h:panelgrid columns="5" cellspacing="9"> <h:panelgrid columns="1" style="margin-left: 0px"> <h:outputtext id="displayrange" value="between #{generatordatalogbean.minrangefortemp} , #{generatordatalogbean.maxrangefortemp}" /> <p:slider for="txt6,txt7" display="displayrange" style="width: 130px; margin-top: 0px" range="true" displaytemplate="between {min} , {max}" step="10" minvalue="-50" maxvalue="150" > <p:ajax event="slideend" process="txt6,txt7" /> </p:slider> </h:panelgrid> <h:inputhidden id="txt6" value="#{generatordatalogbean.minrangefortemp}" /> <h:inputhidden id="txt7" value="#{generatordatalogbean.maxrangefortemp}" /> <p:commandbutton value="change" style="width: 70px; height: 30px; margin-left: 15px" actionlistener="#{generatordatalogreportbean.changegraph(generatordatalogbean.maxrangefortemp,generatordatalogbean.minrangefortemp)}" ajax="false" update=":movementtabview:temperatureanalysispanel" /> </h:panelgrid> </h:form> <p:chart type="line" model="#{generatordatalogreportbean.animatedmodel1}" style="width:98%;"/> <br/> </p:outputpanel> </p:tab>
in jsf page want update single tab when pressed commandbutton update whole page how can handle it? tabview under this:
<p:layoutunit position="center"> <p:tabview id="movementtabview" dynamic="true">
i can see not using id <p:tab>
try assign id , update update=":movementtabview:tabid:temperatureanalysispanel"
Comments
Post a Comment