title: Updating a custom p:datatable from a commandButton in another datatable one solution works and other does not
body: <p>I tried to update a datatable from a command button in another datatable.
  I am using primefaces custom components.
  I had this code:</p>
  
  <pre><code>&lt;h:panelGroup id="eid_pnlGrp" layout="block" class="row_div"&gt;
  
      &lt;cust:panel id="ediDetailsTbl" export="true"
          refreshAction="#{eidStatusInquiryBean.searchEidStatus(subscriberContainer.accountNumber,2)}"
          table="#{eidStatusInquiryBean.eidInquiryTbl}" autoPublish="true"
          layout="table"&gt;
  
          &lt;f:facet name="preActions"&gt;
              &lt;p:column id="actionCol" exportable="false"
                  headerText="Sub EID"&gt;
                  &lt;h:panelGroup layout="block" styleClass="commandStyle"&gt;
                  &lt;p:commandButton id="actionBtn" value=" " async="true"
                      onstart="PF('eid_Blk').show();"
                      oncomplete="PF('eid_Blk').hide();"
      actionListener="#{eidStatusInquiryBean.loadEidFlatDetails(cimTableUtils.getCellValue(record, 'GetEidDetails.SUB_EID')!=null?cimTableUtils.getCellValue(record, 'GetEidDetails.SUB_EID'):cimTableUtils.getCellValue(record, 'GetEidDetailsByAccountNo.SUB_EID'))}"
                      update=":#{p:component('eid_pnlGrp')}"
                      process=":#{p:component('eid_pnlGrp')}" /&gt;
                      &lt;/h:panelGroup&gt;
              &lt;/p:column&gt;
          &lt;/f:facet&gt;
      &lt;/cust:panel&gt;
  
      &lt;cust:panel export="true" id="eid_flat_details"
          rendered="#{eidStatusInquiryBean.eidFlatDetailsTbl ne null }"
          table="#{eidStatusInquiryBean.eidFlatDetailsTbl}"
          autoPublish="false" layout="table"&gt;
      &lt;/cust:panel&gt;
  
  &lt;/h:panelGroup&gt;
  </code></pre>
  
  <p>Now when the table was rendered. The pagination was not working.
  When I made a slight change and enclosed the second cust:panel inside a panel group and updated that from the command button, it worked fine.
  The changed code is:</p>
  
  <pre><code>&lt;h:panelGroup id="eid_pnlGrp" layout="block" class="row_div"&gt;
  
      &lt;cust:panel id="ediDetailsTbl" export="true"
          refreshAction="#{eidStatusInquiryBean.searchEidStatus(subscriberContainer.accountNumber,2)}"
          table="#{eidStatusInquiryBean.eidInquiryTbl}" autoPublish="true"
          layout="table"&gt;
  
          &lt;f:facet name="preActions"&gt;
              &lt;p:column id="actionCol" exportable="false"
                  headerText="Sub EID"&gt;
                  &lt;h:panelGroup layout="block" styleClass="commandStyle"&gt;
                  &lt;p:commandButton id="actionBtn" value=" " async="true"
                      onstart="PF('eid_Blk').show();"
                      oncomplete="PF('eid_Blk').hide();"
      actionListener="#{eidStatusInquiryBean.loadEidFlatDetails(cimTableUtils.getCellValue(record, 'GetEidDetails.SUB_EID')!=null?cimTableUtils.getCellValue(record, 'GetEidDetails.SUB_EID'):cimTableUtils.getCellValue(record, 'GetEidDetailsByAccountNo.SUB_EID'))}"
                      update=":#{p:component('eidFlatDetails_pnlGrp')}"
                      process="@this :#{p:component('eid_pnlGrp')}" /&gt;
                      &lt;/h:panelGroup&gt;
              &lt;/p:column&gt;
          &lt;/f:facet&gt;
      &lt;/cust:panel&gt;
  
      &lt;h:panelGroup id="eidFlatDetails_pnlGrp"&gt;
          &lt;cust:panel export="true" id="eid_flat_details"
              rendered="#{eidStatusInquiryBean.eidFlatDetailsTbl ne null }"
              table="#{eidStatusInquiryBean.eidFlatDetailsTbl}"
              autoPublish="false" layout="table"&gt;
          &lt;/cust:panel&gt;
      &lt;/h:panelGroup&gt;
  
  
  &lt;/h:panelGroup&gt;
  </code></pre>
  
  <p>Can you please tell me why one works and the other does not</p>
  
  <p>Tools: Primefaces 5.0</p>