title: unexpected whole page refresh using p:commandButton
body: <p>I am using below code to delete the row in <code>p:datatable</code>. If am using onclick method inside <code>p:commandbutton</code> tag it refresh whole page else its working fine. please Give me some solution.</p>
  
  <pre><code>&lt;p:commandButton title="Delete Affiliation" immediate="true" process="@this"
      update="affiliationList" alt="Delete Affiliation" icon="ui-icon-trash"
      action="#{readAuthorDetailsbean.deleteSelectedAffiliation}" style="width:30px"
      onclick="return confirm('Are you sure, Do you want to delete this record?');"&gt;
      &lt;f:setPropertyActionListener value="#{affiliation}" 
          target="#{readAuthorDetailsbean.selectedAffilliationListAL}" /&gt;
  &lt;/p:commandButton&gt;
  </code></pre>