title: Clear grid on click of Yes button in confirmation dialog box
body: <p>I have a JSF in which i have a functionality to delete a particular row of a grid. I am using panel grid. On click of delete button i get a confirmation dialog box on click of yes which the row should be deleted and the grid should be refreshed. I am able to delete the row however the grid does not get refreshed or clear.
  Below is my JSF Code. Any help will be appreciated.</p>
  
  <pre><code>&lt;p:commandButton id="delete"
    icon="ui-icon ui-icon-trash"
    action="#{trafficExpenseItemsMBean.deleteTrafficExpenseItemRow}"
    onclick="setSelectedRowId('rowId',#{trafficSearchResult.id})"
    title="GDeleteButton"&gt;
    &lt;p:confirm header="Delete Record"
      message="Are you sure about deleting this record?"
      icon="ui-icon-alert"/&gt;
  &lt;/p:commandButton&gt;
  
  &lt;p:confirmDialog global="true" showEffect="fade"&gt;
    &lt;p:commandButton title="GDelYesButton" value="Yes" styleClass="ui-confirmdialog-yes"/&gt;
    &lt;p:commandButton title="GDelNoButton" value="No"  onclick="PF('confirmation').hide()" styleClass="ui-confirmdialog-no" /&gt;
  &lt;/p:confirmDialog&gt;
  </code></pre>