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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -