i was having problems yesterday after recoding some jsf pages--the method saveParty wasn't getting called.
listTADs.xhtml (includes the file below, listTADParties.xhtml):
...
<rich:modalPanel id="modalPanelTA" autosized="true">
...
<a4j:outputPanel id="modalPanelTA_content">
<h:form>
<h:panelGroup rendered="#{tadController.panelToShow == 'viewParties'}">
<ui:include src="/listTADParties.xhtml" />
</h:panelGroup>
</h:form>
</a4j:outputPanel>
</rich:modalPanel>
...
listTADParties.xhtml:
...
<rich:modalPanel>
<h:form>
...
<a4j:commandButton action="#{tadController.saveParty}" value="save" reRender="transportAgreementPartiesTbl"
oncomplete="if (#{facesContext.maximumSeverity==null}) #{rich:component('editPartiesPanel')}.hide();"/>
...
</h:form>
</rich:modalPanel>
...
the solution was removing the parent h:form in listTADs.xhtml (the problem was the form inside the other/parent form):
...
<a4j:outputPanel id="modalPanelTA_content">
<h:panelGroup rendered="#{tadController.panelToShow == 'viewParties'}">
<ui:include src="/listTADParties.xhtml" />
</h:panelGroup>
</a4j:outputPanel>...
IT, computer and programming tutorials and tips that i couldnt find anywhere else using google, from my daily work as a Senior Developer of solutions using Java and Linux.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment