title: Primefaces messages for validation and growl for the rest
body: <p>I have a JSF page with primefaces and I would like to use p:messages for the messages of the input validations and a Growl element for the rest of the things like notifications, errors ...</p>
  
  <p>At the moment I have a Growl with attribute for and I'm sending notifications with this for attribute.</p>
  
  <p>The problem is that I don't know which for attribute I have to put in the p:messages component. If I left it as null the notification messages are showing in Growl and on p:messages.</p>
  
  <p>Here you can see an example of my JSF.</p>
  
  <pre><code>&lt;p:growl id="growlNotifyNewReg" for="growlNotificationsNewRegister"
                           showSummary="true" 
                           showDetail="true"
                           autoUpdate="true"/&gt;
  
  &lt;h:outputText value="Validado"/&gt;
  &lt;p:selectBooleanCheckbox id="checkValidado" value="#{}" required="true"/&gt;
  
  &lt;h:outputText value="Temperatura (ºC)"/&gt;
  &lt;p:inputText id="Temperatura" value="#{}" required="true"&gt;
        &lt;f:validateDoubleRange minimum="-50" maximum="60" /&gt;
        &lt;f:convertNumber maxFractionDigits="1" /&gt;
  &lt;/p:inputText&gt;
  
  &lt;!-- Other inputs... --&gt;
  
  &lt;p:messages showSummary="true" showDetail="true" redisplay="false"/&gt;
  </code></pre>
  
  <p>When I want to send a notification I do like this.</p>
  
  <pre><code>FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, "summary", "details");
  FacesContext.getCurrentInstance().addMessage("growlNotificationsNewRegister", facesMsg);
  </code></pre>
  
  <p>This code sends messages to Growl component but also to messages component because it doesn't have for attribute. I want to know which attribute I have to put in messages component to show only the validations messages of the form.</p>
  
  <p>As you can see I put redisplay attribute to false. Can I put multiple ids in the for attribute of the p:messages?</p>