1
I have something like
<p:panelGrid id="tabelaUm">
<h:form id="formUm" rendered="#{condicao ? true : false}"/>
<p:commandButton action="#{condicao = false}" update="formUm, formDois"/>
</p:panelGrid>
<p:panelGrid id="tabelaDois">
<h:form id="formDois" rendered="#{condicao ? false : true}"/>
</p:panelGrid>
When I try to access the page, an exception FacesException
is launched:
Cannot find Component with Expression "formDois" referenced from "formUm:j_idt185".
How can I solve this problem?
The question is very objective, I will try to give a hint on the same level. Try this:
update="formUm,:form: formDois"
– Cold