title: JSF 2 + Primefaces - Update Not Working
body: <p>I'lve already searched, but even implementing the solutions I've found, I was not able to get this working. I select a row in a datatable and click on delete button to delete the selected object, but the object gets deleted but the datatable is not updated. Here's my code:</p>
  
  <pre><code>&lt;h:form id="formPesquisa"&gt;  
              ...
              &lt;h:panelGroup id="panelToRender" layout="block"&gt;
                  &lt;h:panelGroup id="panelDataTable" rendered="#{not empty bean.dataList}" layout="block"&gt;
                      &lt;div id="dataTableRegion"&gt;
                          &lt;p:panel id="panelBtnsUp" styleClass="cleanPanel"&gt;
                              &lt;ui:include src="/templates/btnDataList.xhtml" /&gt;
                          &lt;/p:panel&gt;
                          &lt;h:panelGroup id="panelTableHolder" layout="block"&gt;
                              &lt;p:dataTable id="dataTableBusca" value="#{bean.dataList}" var="entidade" 
                                  rendered="#{not empty bean.dataList}" paginator="true" style="width:100%;"
                                  selection="#{bean.entidadesSelecionadas}" onRowSelectUpdate="panelBtnsUp,panelBtnsDown,dataTableBusca"
                                  onRowUnselectUpdate="panelBtnsUp,panelBtnsDown,dataTableBusca" rowUnselectListener="#{bean.rowUnselectListener}" selectionMode="multiple"&gt;
                                  &lt;p:column&gt;
                                      &lt;p:graphicImage url="/icons/checkbox_no.png" rendered="#{!bean.containsSelection(entidade)}" /&gt;
                                      &lt;p:graphicImage url="/icons/checkbox_yes.png" rendered="#{bean.containsSelection(entidade)}" /&gt;
                                  &lt;/p:column&gt;
                                  &lt;ui:insert name="colunasPesquisa" /&gt;
                              &lt;/p:dataTable&gt;
                          &lt;/h:panelGroup&gt;
                          &lt;p:panel id="panelBtnsDown" styleClass="cleanPanel"&gt;
                              &lt;ui:include src="/templates/btnDataList.xhtml" /&gt;
                          &lt;/p:panel&gt;
                      &lt;/div&gt;
                  &lt;/h:panelGroup&gt;
              &lt;/h:panelGroup&gt;
              ....
  &lt;/h:form&gt;
  </code></pre>
  
  <p>And the Delete Button is in the included file:</p>
  
  <pre><code>&lt;div style="margin:5px 0;"&gt;
      &lt;p:commandButton value="#{msg['commons.excluir']}" image="delete" disabled="#{bean.disableDelete()}" action="#{bean.delete}" update="panelDataTable" /&gt;
      &lt;p:commandButton value="#{msg['commons.editar']}" image="edit" disabled="#{bean.disableEdit()}" action="#{bean.prepareEdit}" ajax="false" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I already tried:</p>
  
  <p>update="dataTableBusca"<br>
  update="panelTableHolder"<br>
  update="formPesquisa:dataTableBusca"<br>
  update="formPesquisa:panelTableHolder"  </p>
  
  <p>What am I doing wrong???</p>
  
  <p>Thanks for any help.</p>