Problem Description:
When a page has multiple forms, then p:commandLink component (may be other components too) doesn't work as expected. Its not calling the bean's action method or either updating/rerendering the component. I tried several times and found this problem after many hours, why p:commandLink gone crazy.
Code:
Code: Select all
<h:form prependId="false" id="Form1">
<p:commandLink update="ShowDialogPanel" oncomplete="extraContentDialog.show();" action="#{extraBean.navigationExtraAction}" value="Ansprechpartner" >
<f:setPropertyActionListener value="4" target="#{extraBean.selectedType}" />
</p:commandLink>
<p:dialog id="MainDialog" header="Dialog" visible="false" widgetVar="extraContentDialog" modal="true" fixedCenter="true">
<h:outputText value="#{extraBean.updatedContent}" />
</p:dialog>
</h:form>
<h:form prependId="false" id="Form2">
// whatever stuff
</h:form>
<h:form prependId="false" id="Form3">
// whatever stuff
</h:form>
Thanks in advance.