title: How to refresh the page after closing p:dialog
body: <p>I've the below dialog:</p>
  
  <pre><code>&lt;h:form id="r1"&gt;
    &lt;p:commandButton value="Basic" type="button" onclick="PF('dlg1').show();" /&gt;
    &lt;p:dialog header="Basic Dialog" widgetVar="dlg1"&gt;
      &lt;h:outputText id="test" value="Welcome to PrimeFaces" /&gt;
    &lt;/p:dialog&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>How can I refresh the JSF page after closing the dialog?</p>