java - Primefaces updates -
hello i'am having problems updates, have composite component nested in few components , want update of them, proper way ? second can update div?
code example:
<div id="outer"> <p:commandbutton id="button"/> <div id="inner"> <h:form id="form"> <mycomponents:test whattoupdate="form panel button outer label">//here problem </h:form> </div> </div> <div id="outer2"> <h:form id="form"> <p:panelgroup id="panel"> <p:label id="label" value="value"/> </p:panelgroup> </h:form> </div>
instead of divs use p:outputpanel:
<p:outputpanel id="outer"> <p:commandbutton id="button" update="inner"/> <p:outputpanel id="inner"> <h:form id="form"> <mycomponents:test whattoupdate="form panel button outer label">//here problem </h:form> </p:outputpanel> </p:outputpanel>
Comments
Post a Comment