title: How close automatically a PrimeFaces dialog after three seconds
body: <p>I want to show a dialog only three seconds and after close it automatically and  redirect an other faces page. How can I do it?</p>
  
  <p>Thanks in Advance.</p>
  
  <p>The dialog:</p>
  
  <pre><code>&lt;p:dialog id="dialog" header="Message" widgetVar="dlg1"&gt;  
  &lt;h:outputText value="your account is being blocked......" /&gt;  
  &lt;/p:dialog&gt;  
  </code></pre>