title: JSF - Showing 2 sets of messages using 1 command button
body: <p>Is it possible to have 2 sets of messages? I have a jsf form that is primefaces enabled, I want to display the error messages in p:messages and the success in p:growl when a single command button is hit. Is that possible?</p>
  
  <p>I already tried various combination but it doesn't work like:</p>
  
  <pre><code>FacesContext.getCurrentInstance().addMessage("myForm:messagesGrowl", message);
  </code></pre>
  
  <p>The messages always show on both the p:messages and p:growl.</p>
  
  <p>My command button:</p>
  
  <pre><code>&lt;p:commandButton style="float: right;" value="Send" action="#{myAction.execute()}" ajax="true" update="messages, messagesGrowl"&gt;&lt;/p:commandButton&gt;
  </code></pre>
  
  <p>Thanks,
  <br />czetsuya</p>