I can face the same problem if I replace a4j usage with f:ajax<h:commandLink value="Render"><f:ajax execute="@form" render=":form2Wrapper" event="click"/></h:commandLink>
<f:ajax execute="@form" render=":form2Wrapper" event="click"/>
So I guess my problem is deeper. But I still can't find out where it is.
I've also posted this problem on java.net forum.
The links follow below:
Finally I got the answer on http://www.coderanch.com/http://www.coderanch.com/t/523225/JSF/java/JSF-GlassFish but it seems I don't like it. =)
I looks like I can't completely re-render one form form another if it was not rendered on the page before. If I place all elements into one form it should work fine. It looks like a JSF 2.0 limitation. But at least I know how to avoid this problem. If someone has any other thoughts, please, write them here.
I think that the person at coderanch explained this well. Thanks for posting the link/info here.
Today I tried to troubleshoot this problem and found that this stuff <input type="hidden" name="javax.faces.ViewState" is causing the problem because it is not present in a re-rendered form. I also found a couple of similar issues in JSF JIRA:
So I hope that this is a bug and it's going to be fixed in the future JSF 2.x releases.
Any news yet?
Have you found a workaround for this problem?
workaround in "correct answers"