jsf - Update issue when select p:selectOneMenu from primefaces -


i developing project using primefaces.

code:

<p:panel id="accountpolicyrichpanel">     <h:panelgrid id="outputpanelgrid">           <h:outputtext value=""...../>          <p:inputtext id="inputtextid"/>          <p:selectonemenu id="suspendtypeid" value="...">              <f:selectitems value="#{accountpolicy.suspendtypeitemlist}"/>              <p:ajax listener="#accountpolicy.suspendtypecomboboxaction}"event="change" update="outputpanelgrid"/>         </p:selectonemenu>    </panelgrid>          <p:commandbutton id="savebuttonid" value="..." action="..."               update="accountpolicyrichpanel" />  </p:panel> 

my issue when select <p:selectonemenu> upadte <h:panelgrid id="outputpanelgrid"> @ time previous entered value in <p:inputtext id="inputtextid"/> removed.

how update <h:panelgrid id="outputpanelgrid"> or <p:panel> without remove previous entered value in p:inputtext.

you must exclude <p:inputtext id="inputtextid"/> update or add input execute, because ajax processes default current component in execute="@this".

e.g. implementation: <p:ajax process="outputpanelgrid" listener="#{accountpolicy.suspendtypecomboboxaction}"event="change" update="outputpanelgrid"/>


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -