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, a FacesException
exception is thrown:
Can not find component with expression "formDois" referenced from "formUm: j_idt185".
How can I resolve this problem?