title: javax.faces.ViewState is missing after ajax render
body: <p>This is not a duplicate post, i just done research but not helping.</p>
  
  <p>First, this is my page... simplified for easy reading.</p>
  
  <pre><code>            &lt;h:form id="treeForm"&gt;
                  &lt;f:event type="preRenderView" listener="#{taskTreeBean.update}" /&gt;              
                  &lt;rich:tree id="tree" nodeType="#{node.type}" var="node"
                      value="#{taskTreeBean.rootNodes}" toggleType="client"
                      selectionType="ajax"
                      render="@all"
                      selectionChangeListener="#{taskTreeBean.selectionChanged}"&gt;
                      &lt;rich:treeNode&gt;
                      ...
                      &lt;/rich:treeNode&gt;
                  &lt;/rich:tree&gt;
              &lt;/h:form&gt;
              &lt;h:form id="taskListTableForm"&gt;
                  &lt;rich:dataTable id="taskListTable" styleClass="tasklist" keepSaved="true" value="#{taskListModel}" var="task"
                      rowClasses="odd-row, even-row" rows="3"&gt;
                      &lt;rich:column&gt;
                      ...
                      &lt;/rich:column&gt;
                      &lt;f:facet name="footer"&gt;
                          &lt;rich:dataScroller id="scroller" for="taskListTable" /&gt;
                      &lt;/f:facet&gt;
                  &lt;/rich:dataTable&gt;
              &lt;/h:form&gt;
  </code></pre>
  
  <p>When i click some tree node, task list form will render, but the viewstate will disappear, which makes dataScroller requires <strong>two clicks</strong> to next/prev page since the first click is getting back the ViewState value.</p>
  
  <p>I checked the JIRA here - <a href="http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-790" rel="noreferrer">http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-790</a>.</p>
  
  <p>Tried render="@all" or render="treeForm, taskListTableForm", both failed. I cannot wait mojarra to release 2.2. So is there any workaround here?</p>
  
  <p>Thanks so much. The JIRA is just too difficult to understand.</p>
  
  <p><strong>Edited:</strong> There is another problem, the page go from 1 to 2 in the dataTable if i click the tree node. Why?</p>