title: Prevent page refresh after pressing PrimeFaces' button
body: <p>I have a web page with a <code>p:tabView</code> and some <code>p:tab</code> inside. In one of these tabs (which is not the default one) there is a <code>p:commandLink</code> that, on click, updates and displays a <code>p:dialog</code> containing a <code>p:button</code>.</p>
  
  <p>My problem is that after clicking the button in the dialog, the page refreshes and shows again the default tab. Instead, I want the button to close the dialog without refreshing the page. In other words, I want the button to trigger an action on the server side, and on the client side to behave like the <code>x</code> close link in the top right corner of the dialog.</p>