I have a problem concerning the reset of a f:selectOneMenu with a p:ajax element inside a p:dataTable with row edit mode. When I cancel the row editing, all changes in every field (also other f:selectOneMenu elements without a p:ajax) are correctly reset except for a f:selectOneMenu which contains a p:ajax element.
If I remove the concerning p:ajax element the f:selectOneMenu is as well reset correctly.
Any advice where my problem may arise from?
Here is the concerning xhtml snippet:
<h:form id="tradingPartnersForm">
<p:dataTable id="tradingPartnerRow" styleClass="partnersTable" var="partnerText"
value="#{tradingPartners.tradingPartnerList}" editable="true" >
<p:ajax event="cellEdit" listener="#{tradingPartners.onRowEdit}" update=":messages" />
<p:ajax event="rowEditCancel" listener="#{tradingPartners.onRowCancel}" update=":messages" />
... // other fields
<p:column headerText="#{someLabel}">
<p:cellEditor>
<f:facet name="output">
<h:outputText value="#{partnerText.rolle}" />
</f:facet>
<f:facet name="input">
<p:selectOneMenu value="#{partnerText.rolle}">
<f:selectItems value="#{tradingPartners.partnerKindsMap.entrySet()}" var="partnerKindsEntry" itemValue="#{partnerKindsEntry.key}" itemLabel="#{partnerKindsEntry.value}" />
<p:ajax event="change" execute="@this" update="l1group l2group" />
</p:selectOneMenu>
</f:facet>
</p:cellEditor>
</p:column>
... // other fields
<p:column style="width:32px">
<p:rowEditor />
</p:column>
</p:dataTable>
</h:form>
f:selectOneMenu
, but your code saysp:selectOneMenu
. 2. It seems similar to problem I have encountered before, may be it's a primefaces bug. Checkout the answers to this question. stackoverflow.com/questions/10780093/… – Lokesh