title: Inconsistent behavior between <p:commandLink> and <p:commandButton>
body: <p>I have a delete confirmation dialog:</p>
  
  <pre><code>  &lt;p:confirmDialog id="deleteConfirmDialog"
      header="#{i18n['confirm-deletion']}"
      widgetVar="pnp_delete_confirmDialog" closeable="false"
      appendToBody="true"&gt;
      &lt;f:facet name="message"&gt;
        &lt;h:outputFormat id="deleteConfirmMessage"
          value="#{i18n['confirm-subscription-deletion']}"&gt;
          &lt;f:param value="#{subscriptions.deleteSelected.title}" /&gt;
        &lt;/h:outputFormat&gt;
      &lt;/f:facet&gt;
      &lt;h:form id="pnpConfirmDeleteForm"&gt;
        &lt;p:commandButton id="deleteActionConfirmed"
          action="#{subscriptions.delete}" value="#{i18n['delete']}"
          type="button" process="@this" update=":pnpEditForm :pnpExistingForm"
          oncomplete="pnp_delete_confirmDialog.hide()" /&gt;
        &lt;p:commandLink id="deleteActionConfirmedLink"
          action="#{subscriptions.delete}" process="@this"
          update=":pnpEditForm :pnpExistingForm"
          oncomplete="pnp_delete_confirmDialog.hide()"&gt;#{i18n['delete']}&lt;/p:commandLink&gt;
        &lt;p:commandButton id="deleteActionCancelled" value="#{i18n['cancel']}"
          type="button" onclick="pnp_delete_confirmDialog.hide()" /&gt;
      &lt;/h:form&gt;
    &lt;/p:confirmDialog&gt;
  </code></pre>
  
  <p>You will notice that the <code>deleteActionConfirmed</code> button and the <code>deleteActionConfirmedLink</code> link have the exact same action, process, update, and oncomplete attributes.  However, the link works as expected and the button does nothing.  Looking at the generated markup:</p>
  
  <pre><code>&lt;form enctype="application/x-www-form-urlencoded"
    action="/primefaces-quickstart/xhtml/pnp-configuration.xhtml" method="post"
    name="pnpConfirmDeleteForm" id="pnpConfirmDeleteForm"&gt;
    &lt;input type="hidden" value="pnpConfirmDeleteForm" name="pnpConfirmDeleteForm"&gt;
    &lt;button type="button"
      class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
      name="pnpConfirmDeleteForm:deleteActionConfirmed"
      id="pnpConfirmDeleteForm:deleteActionConfirmed" role="button"
      aria-disabled="false"&gt;
      &lt;span class="ui-button-text"&gt;Delete&lt;/span&gt;
    &lt;/button&gt;
    &lt;a
      onclick="PrimeFaces.ab({source:'pnpConfirmDeleteForm:deleteActionConfirmedLink',process:'pnpConfirmDeleteForm:deleteActionConfirmedLink',update:'pnpEditForm pnpExistingForm',oncomplete:function(xhr,status,args){pnp_delete_confirmDialog.hide();}});return false;"
      class="ui-commandlink" href="#"
      id="pnpConfirmDeleteForm:deleteActionConfirmedLink"&gt;Delete&lt;/a&gt;
    &lt;button type="button" onclick="pnp_delete_confirmDialog.hide();"
      class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
      name="pnpConfirmDeleteForm:deleteActionCancelled"
      id="pnpConfirmDeleteForm:deleteActionCancelled" role="button"
      aria-disabled="false"&gt;
      &lt;span class="ui-button-text"&gt;Cancel&lt;/span&gt;
    &lt;/button&gt;
    &lt;input type="hidden" autocomplete="off"
      value="7076449462381240234:-2976764560029615800" id="javax.faces.ViewState"
      name="javax.faces.ViewState"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>You can see that there is no onclick generated for the button, where there is for the link.  Am I missing something or is this a bug in primefaces?  If a bug, is there a workaround other than using links with styles to make them look like buttons?</p>
  
  <p>I am using mojarra 2.1.14 with primefaces 3.4.2 on tomcat 6.0.32 (servlet 2.5, el 2.1).</p>