I'm having an issue submitting the contents of a form that is within a conditionally rendered rich:panel. I have a commandButton within the form whose action is supposed to execute a method on my backing bean, but the method is never invoked and instead the entire page is re-rendered. I've read in similar questions that the issue is related to theView state, but I've tried to follow the answers people have given with no luck.
Here is a snippet from my main xhtml page that is used to set the boolean controlling the panel render to 'true' (it is within a data grid):
<a4j:commandLink execute="@this" value="#{tableData.itemNumber}" render="edit editRowPanel editForm" title="View/Edit Record Detail"
action="#{navigate.setShowEdit(true)}" oncomplete="RichFaces.$('pleaseWaitView:searchWaitPanel').hide()" >
<f:setPropertyActionListener target="#{context.currentItem}" value="#{tableData}" />
</a4j:commandLink>
The above code is rendering the panel as it should.
Here is the code from the main xhtml page that displays the panel:
<h:panelGroup id="edit">
<rich:panel id="editRowPanel" rendered="#{navigate.isShowEdit()}" style="padding: 10px" >
<f:facet name="header">
<h:outputText value="Edit Row"/>
</f:facet>
<ui:include src="detail-page.xhtml" />
</rich:panel>
</h:panelGroup>
Here is the submit button code that is within the form on detail-page.xhtml:
<h:commandButton styleClass="button" value="#{bundle.SaveChangesButton}" action="#{pplSuspenseBean.performRecordSave}" />
If I set "rendered="true"" on my editRowPanel everything works fine, it is only when render based on the condition that it does not work. Any suggestions to fix this would be greatly appreciated, thanks!