title: How to hide <p:messages> after it displayed the messages?
body: <p>I am working on JSF application in primefaces in that i am showing an information to the user via <code>&lt;p:messages&gt;</code> .</p>
  
  <p>So when the user click submit the page will processed and the p:messages dialog will triggered to show the information to the user , </p>
  
  <p>I referred Primefaces <a href="http://www.primefaces.org/showcase/ui/messages.jsf" rel="nofollow">p:messages</a> showcase Page</p>
  
  <p>It is working fine..But after it displayed the messages , it is not closing automatically either we need to close that dialog manually or it remains in open stage.</p>
  
  <p>I need it should it close automatically after it displayed the message to user...
  How can i do that ...Can anybody give suggestion that how can i do ?</p>