title: Primefaces: commandButton in confirmDialog cannot update datatable in the same form
body: <p>I have 1 datatable which includes Edit and Delete command buttons in each row. Delete button shows a confirm dialog onclick, and by actionListener, sets the currentObject variable to the object that it belongs to in the same row. </p>
  
  <p>In the confirm dialog, Yes is also a command button, and it calls delete(object) method of the bean.</p>
  
  <p>Everything works fine. Delete function is below:</p>
  
  <pre><code>    public void delete(ActionEvent actionEvent) {
      categoryRepository.delete(currentCategory);
      currentCategory = new Category();
      categoryList = categoryRepository.findAll();
  }
  </code></pre>
  
  <p>I want to update the datatable after delete. But update does not work for datatable. I can only update @form, but this time,  everything in the page becomes disable, and I cannot select anything. Can be a bug.</p>
  
  <p>Here is the xhtml code:</p>
  
  <pre><code>    &lt;h:form id="categoryForm"&gt;
                  &lt;p:commandButton id="addCategoryButton" value="New"
                      onclick="categoryDialog.show();" type="button" /&gt;
  
                  &lt;p:dataTable var="cat" value="#{categoryBean.categoryList}"
                      rowKey="#{cat.id}" paginator="true" rows="10"
                      selection="#{categoryBean.selectedCategories}" id="categoryTable"
                      widgetVar="categoryTable"&gt;
  
                      &lt;f:facet name="header"&gt;
          Category List
      &lt;/f:facet&gt;
                      &lt;p:column selectionMode="multiple" /&gt;
                      &lt;p:column headerText="Name" sortBy="#{cat.name}"
                          filterBy="#{cat.name}" id="name"&gt;
                       #{cat.name[categoryBean.currentLocale.language]}
                      &lt;/p:column&gt;
                      &lt;p:column headerText="Sort Order" sortBy="#{cat.sortOrder}"
                          filterBy="#{cat.sortOrder}" id="sortOrder"&gt;
                          #{cat.sortOrder}
                      &lt;/p:column&gt;
                      &lt;p:column headerText="Actions" id="actions"&gt;
                          &lt;h:commandButton action="#{categoryBean.edit(cat)}" value="Edit" /&gt;
  
                          &lt;h:commandButton value="Delete"
                              onclick="deleteConfirmation.show()" type="button"&gt;
                              &lt;f:setPropertyActionListener value="#{cat}"
                                  target="#{categoryBean.currentCategory}" /&gt;
                          &lt;/h:commandButton&gt;
  
                      &lt;/p:column&gt;
  
                  &lt;/p:dataTable&gt;
                  &lt;p:confirmDialog id="deleteConfirmDialog" message="Are you sure?"
                      header="Initiating destroy process" severity="alert"
                      widgetVar="deleteConfirmation"&gt;
  
                      &lt;p:commandButton id="confirm" value="Yes Sure"
                          update=":categoryForm:categoryTable"
                          oncomplete="deleteConfirmation.hide()"
                          actionListener="#{categoryBean.delete}" /&gt;
                      &lt;p:commandButton id="decline" value="Not Yet"
                          onclick="deleteConfirmation.hide()" type="button" /&gt;
                  &lt;/p:confirmDialog&gt;
  
                  &lt;p:dialog id="categoryDialog" header="Category Detail"
                      widgetVar="categoryDialog" resizable="false" style="width:90%;"
                      showEffect="explode" hideEffect="explode"&gt;
                      &lt;p:panel id="panel" header="Edit Category"
                          style="margin-bottom:10px;"&gt;
                          &lt;p:messages id="messages" /&gt;
                          &lt;h:panelGrid columns="3"&gt;
                              &lt;h:outputLabel for="nameTabView" value="Name: " /&gt;
                              &lt;p:tabView id="nameTabView"&gt;
                                  &lt;c:forEach var="locale" items="#{categoryBean.userLocales}"&gt;
                                      &lt;p:tab title="#{locale.displayLanguage}"&gt;
                                          &lt;h:panelGrid columns="2" cellpadding="10"&gt;
                                              &lt;h:inputText
                                                  value="#{categoryBean.currentCategory.name[locale.language]}" /&gt;
                                          &lt;/h:panelGrid&gt;
                                      &lt;/p:tab&gt;
                                  &lt;/c:forEach&gt;
                              &lt;/p:tabView&gt;
                          &lt;/h:panelGrid&gt;
                          &lt;p:commandButton id="saveCategoryButton" value="Save"
                              oncomplete="categoryDialog.hide()"
                              actionListener="#{categoryBean.save}"
                              update="categoryTable, categoryDialog" /&gt;
                      &lt;/p:panel&gt;
  
                  &lt;/p:dialog&gt;
              &lt;/h:form&gt;
  </code></pre>