We are currently trying to upgrade to JSF 2.0 from JSF 1.2, and one of the problems we are facing is the inability to re-partial the part of the page containing the form. How is it (rerender outerDivor the forms themselves):
<h:panelGroup id="outerDiv">
<h:form id="form1">...</h:form>
<h:form id="form2">...</h:form>
</h:panelGroup>
I mean, if I update outerDiv, everything is updated, but the form (or forms) itself breaks and behaves strangely, at least the ajax calls either do not work the first time, or instead of calling some bean they create a new an instance of this bean and do nothing (either destroying the previous one with each call, or simply creating a new one on the first call, and then doing nothing). The problem can be solved by rendering only the components inside the form, like this (update innerDiv1and innerDiv2):
<h:panelGroup id="outerDiv">
<h:form id="form1">
<h:panelGroup id="innerDiv1">...</h:panelGroup>
</h:form>
<h:form id="form2">
<h:panelGroup id="innerDiv2">...</h:panelGroup>
</h:form>
</h:panelGroup>
, ui:include, . , , , .
, JSF 2.0 1- , JSF 1.2?
EDIT: , - richfaces 4.2, a4j:ajax ( a4j:support, richfaces 3.3.3) rich:commandButton. jsf f:ajax, , , . div .