I am developing a 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 is when i select the <p:selectOneMenu>
I upadte the <h:panelGrid id="outputPanelGrid">
at the time my previous entered value in <p:inputText id="InputTextId"/>
is removed.
How to update the <h:panelGrid id="outputPanelGrid">
or <p:panel>
without remove the previous entered value in p:inputText
.