Hi I filed a bug report under <a href="https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=790">https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=790</a><br><br>But I would need further clarification regarding this issue, so that I can move forward with a fix. Since a fix obviously would not break anything (or unlikely at this stage), IŽd rather fix it in the 2.0.1-SNAPSHOT codebase for MyFaces instead of having<br>
to wait for a fix on the spec side. <br><br>But the fix behavior must be inline with the fixed functionality on the spec side in this area, so that I do not program behavior in, which we cannot expect, once this is fixed on spec level (and Mojarra also has to fix this obviously)<br>
<br>Have in mind, this is a usecase, which can happen very often, especially in a szenario, where javascript dialogs are used which have to rely on position absolute, directly under the document element (due to IE6 having personal problems with position:fixed)<br>
so a typical multi window szenario, where there are lots of embedded frames in dialogs and the dialogs can be pushed through the ppr cycle...<br><br><br>Werner<br><br><div class="gmail_quote">On Wed, May 5, 2010 at 3:08 PM, Martin Marinschek <span dir="ltr">&lt;<a href="mailto:mmarinschek@apache.org">mmarinschek@apache.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Werner,<br>
<br>
I agree with you - a new view-state should lead to an update of this<br>
state in all forms - not only the submitting one. The view-state<br>
covers the state for the full _view_ and not the one of one _form_ -<br>
everything needs to be updated - or submits from other forms will not<br>
be possible anymore!<br>
<br>
best regards,<br>
<font color="#888888"><br>
Martin<br>
</font><div><div></div><div class="h5"><br>
On 5/5/10, Werner Punz &lt;<a href="mailto:werner.punz@gmail.com">werner.punz@gmail.com</a>&gt; wrote:<br>
&gt; Hello I am asking this because this because I user ran into this issue by<br>
&gt; using a dom modifying javascript widget and tried to press it through<br>
&gt; jsf.ajax.request.<br>
&gt; (aka a typical dialog widget)<br>
&gt;<br>
&gt;<br>
&gt; The issue is that there is a usecase where you try to execute a ppr within<br>
&gt; one form<br>
&gt; and then try to render another form.<br>
&gt;<br>
&gt; aka:<br>
&gt;<br>
&gt; &lt;h:form id=&quot;form1&quot;&gt;<br>
&gt;<br>
&gt; ... jsf.ajax.request(this, event, {execute:&quot;form1 form2&quot;, render:&quot;form2&quot;});<br>
&gt; &lt;/h:form&gt;<br>
&gt;<br>
&gt;<br>
&gt; &lt;h:form id=&quot;form2&quot;&gt;<br>
&gt; &lt;/form2&gt;<br>
&gt;<br>
&gt; The main issue here is that after the request a javax.faces.ViewState<br>
&gt; element is issued in the ppr cycle. Now the spec says:<br>
&gt;<br>
&gt; If an update element is found in the response with the identifier<br>
&gt; javax.faces.ViewState:<br>
&gt;<br>
&gt; &lt;update id=&quot;javax.faces.ViewState&quot;&gt;<br>
&gt;    &lt;![CDATA[...]]&gt;<br>
&gt; &lt;/update&gt;<br>
&gt;<br>
&gt; locate and update the submitting form&#39;s javax.faces.ViewState value with the<br>
&gt; CDATA contents from the response.<br>
&gt;<br>
&gt; Now this works coherently with a single form usecase because the viewstate<br>
&gt; is issued on the submitting element.<br>
&gt; The main problem is, both implementations in this special case have another<br>
&gt; behavior.<br>
&gt;<br>
&gt; if the form2 is rendered there is no viewstate element in the udate<br>
&gt; id=&quot;form2&quot; but after that the viewState element is issued,<br>
&gt; now however myfaces swallows it entirely for form2 because of this spec<br>
&gt; entry, mojarra updates it only if render:&quot;form2&quot;<br>
&gt; but if for instance<br>
&gt; &lt;h:panelGroup id=&quot;outerFormGroup&quot;&gt;<br>
&gt; &lt;h:form id=&quot;form2&quot;&gt;<br>
&gt; &lt;/form2&gt;<br>
&gt; &lt;/h:panelGroup&gt;<br>
&gt;<br>
&gt; and render:&quot;outerFormGroup&quot; then it is swallowed as well.<br>
&gt;<br>
&gt; I assume now following, since the viewState is viewRoot related, shouldŽt we<br>
&gt; simply update all form elements over the entire page with the new viewState<br>
&gt; content and simply add this field for form elements where the viewState<br>
&gt; control is not present?<br>
&gt; The other solution would be to update all forms where an execute and rendere<br>
&gt; happend or at least a rendere happend inside (or as parent node of the form)<br>
&gt;<br>
&gt; Werner<br>
&gt;<br>
<br>
<br>
</div></div><div><div></div><div class="h5">--<br>
<br>
<a href="http://www.irian.at" target="_blank">http://www.irian.at</a><br>
<br>
Your JSF powerhouse -<br>
JSF Consulting, Development and<br>
Courses in English and German<br>
<br>
Professional Support for Apache MyFaces<br>
</div></div></blockquote></div><br>