<br><br><div class="gmail_quote">On Fri, Jun 19, 2009 at 3:07 PM, Roger Kitain <span dir="ltr"><<a href="mailto:Roger.Kitain@sun.com">Roger.Kitain@sun.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Background:<br>
<br>
It used to be that when processing an Ajax response on the client, all forms in the view<br>
would get updated with the view state from the server (which had it's own set of portlet<br>
related issues). Before the specification went final it was decided that only the submitting form should have it's view state updated from the server.<br>
<br>
Problem:<br>
<br>
Consider the case where there are multiple forms in the view, and one of the forms<br>
is a partial render target. So here, "form1" is an Ajax render target:<br>
<br>
<h:form id="form1"><br>
<h:commandButton value="Should be postback" id="button1"/><br>
</h:form><br>
<br>
<h:form id="form2"><br>
<h:commandButton value="Rerender form1" id="button2"><br>
<f:ajax render=":form1"/><br>
</h:commandButton><br>
</h:form><br>
<br>
In this scenario, "form1" is missing the view state identifier causing a<br>
"non postback" when "button1" is clicked.<br>
<br>
-----------------------<br>
<br>
I think this could get by as an errata for the MR, as we would need to include additional<br>
spec language.</blockquote><div><br>+1. We need to be very sensitive about these "ghost clicks" because that issue has really spurned JSF users in the past.<br><br>-Dan<br><br></div></div>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>
<br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br><a href="http://in.relation.to/Bloggers/Dan">http://in.relationto/Bloggers/Dan</a><br>
<br>NOTE: While I make a strong effort to keep up with my email on a daily<br>basis, personal or other work matters can sometimes keep me away<br>from my email. If you contact me, but don't hear back for more than a week,<br>
it is very likely that I am excessively backlogged or the message was<br>caught in the spam filters. Please don't hesitate to resend a message if<br>you feel that it did not reach my attention.<br>