title: Page not refreshed after confirmation Dilalog - JSF primefaces
body: <p>I am usinf JSF 2.0 and I have an XHTML page and this is the code :
  -I have a  data table with a delete column that looks like this:</p>
  
  <pre><code>&lt;p:column id="Delete" headerText="Delete"&gt;
  &lt;p:commandButton icon="delete" onclick="deleteConfirmation.show()" style="align:center"&gt;
  &lt;f:setPropertyActionListener value="#{item}" target="#{controller.selectedItem}" /&gt; &lt;/p:commandButton&gt;
  
  &lt;/p:column&gt;
  </code></pre>
  
  <ul>
  <li><p>I have a Delete confirm dialog that looks like this :</p>
  
  <p></p>
  
  <pre><code>&lt;p:commandButton id="confirm" value="Yes"
                      update=":myList" oncomplete="deleteConfirmation.hide()"
                      actionListener="#{controller.delete}" /&gt;
                  &lt;p:commandButton id="cancel" value="No"
                      onclick="deleteConfirmation.hide()" type="button" /&gt;
  &lt;/p:confirmDialog&gt;
  </code></pre></li>
  </ul>
  
  <p>everything works fine except that the confirmation button redirects to the page but the deleted Item still exists in the List if items. I think that the page is not refreshed after the Delete action because the item is deleted in the Database and it works fine.
  Would you please help ?</p>