title: How to specify which <p:messages> component to send message
body: <p>I would like to update different  components depending on results in the bean. Right now I am using:</p>
  
  <pre><code>FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, "test","test"));
  </code></pre>
  
  <p>And updating the proper  component with:</p>
  
  <pre><code>&lt;p:commandButton actionListener="#{Controller.method}" update="messageId"/&gt;
  &lt;p:messages id="messageId"/&gt;
  </code></pre>
  
  <p>Is there a different way to do it? From the bean, can I specify which message component to send the message to?</p>