Hello I am asking this because this because I user ran into this issue by using a dom modifying javascript widget and tried to press it through jsf.ajax.request.<br>(aka a typical dialog widget)<br><br><br>The issue is that there is a usecase where you try to execute a ppr within one form <br>
and then try to render another form.<br><br>aka:<br><br>&lt;h:form id=&quot;form1&quot;&gt;<br><br>... jsf.ajax.request(this, event, {execute:&quot;form1 form2&quot;, render:&quot;form2&quot;});<br>&lt;/h:form&gt;<br><br>
<br>
&lt;h:form id=&quot;form2&quot;&gt;<br>&lt;/form2&gt;<br><br>The main issue here is that after the request a javax.faces.ViewState element is issued in the ppr cycle. Now the spec says:<br><br>If an <code>update</code> element is found in the response with the 
identifier
<code>javax.faces.ViewState</code>:
<pre><code>&lt;update id=&quot;javax.faces.ViewState&quot;&gt;<br>   &lt;![CDATA[...]]&gt;<br>&lt;/update&gt;</code></pre>
locate and update the submitting form&#39;s <code>javax.faces.ViewState</code>
 value
with the <code>CDATA</code> contents from the response.<br><br>Now this works coherently with a single form usecase because the viewstate is issued on the submitting element.<br>The main problem is, both implementations in this special case have another behavior.<br>
<br>if the form2 is rendered there is no viewstate element in the udate id=&quot;form2&quot; but after that the viewState element is issued,<br>now however myfaces swallows it entirely for form2 because of this spec entry, mojarra updates it only if render:&quot;form2&quot;<br>
but if for instance <br>

&lt;h:panelGroup id=&quot;outerFormGroup&quot;&gt;<br>&lt;h:form id=&quot;form2&quot;&gt;<br>
&lt;/form2&gt;<br>&lt;/h:panelGroup&gt;<br><br>and render:&quot;outerFormGroup&quot; then it is swallowed as well.<br><br>I assume now following, since the viewState is viewRoot related, should´t we simply update all form elements over the entire page with the new viewState content and simply add this field for form elements where the viewState control is not present?<br>
The other solution would be to update all forms where an execute and rendere happend or at least a rendere happend inside (or as parent node of the form)<br><br>Werner<br><br><br><br><br><br>