title: How to keep primefaces rowexpansion open in an update of the table?
body: <p>Hi I have a datatable with a p:rowToggler, so when launch a popup from a row expasion, after I close the popup I need to update some labels in the rows. Update works! but  the row expanded, collapse. How can you keep open the rowexpansion after close the popup and updated the content. thanks.</p>
  
  <p>Snippet of PopUp</p>
  
  <blockquote>
    <p></p>
  
  <pre><code> &lt;p:ajax event="close"  update=":id1:id2"  oncomplete="someJavascript()" /&gt;
  </code></pre>
    
    <p></p>
  </blockquote>
  
  <p>Snippet of Databable</p>
  
  <pre><code>&lt;h:form prependId="false" id="id1"&gt; 
              &lt;h:panelGroup id="id2" &gt;
                    &lt;p:dataTable tableStyleClass="win" var="element"                                id="table1" value="#{myBean.list}"
                              selectionMode="single"  rowExpandMode="single" rowIndexVar="cont" widgetVar="table1"
                             selection="#{myBean.selectedRecord}" rowKey="#{element.id}"   &gt;
  &lt;p:ajax event="rowToggle"    listener="#{myBean.methodBean(element)}" /&gt; 
                       &lt;p:column styleClass="rowTogglerStyle" 
  &lt;p:rowToggler collapseLabel="#{bundle.show}" 
   expandLabel="#{bundle.show}"&gt;
  &lt;/p:rowToggler&gt;                    
  &lt;/p:column&gt; 
  
  &lt;/p:datatable&gt;  &lt;/h:panelGroup&gt;  &lt;/h:form&gt;
  </code></pre>