title: Specific error message does not render in Primefaces?
body: <p>I would like to show specific error message.
  Here is my form.</p>
  <pre><code>&lt;h:form id=&quot;userEntryForm&quot;&gt;
      &lt;p:message for=&quot;email&quot; styleClass=&quot;error-message&quot;/&gt;
      &lt;p:inputText value=&quot;#{UserActionBean.user.email}&quot; required=&quot;true&quot; id=&quot;email&quot; /&gt;                                         
  &lt;/h:form&gt;
  </code></pre>
  <p>When I use one parameter FacesMessage constructor as following,</p>
  <pre><code> public boolean isValid() {
      if(...) {
          FacesMessage facesMessage = new FacesMessage(&quot;Error : Email does not match.&quot;)
          FacesContext.getCurrentInstance().addMessage(&quot;entryForm:newPassword&quot;, facesMessage);
      }
   }
  </code></pre>
  <p>error message shows properly with info style css. I want to show error style so that I used
  three parameter FacesMessage constructor,</p>
  <pre><code>FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_ERROR, &quot;Error : Email does not match.&quot;, &quot;&quot;)
  </code></pre>
  <p>error sign appears but does not render error message as follow.<img src="https://i.stack.imgur.com/px5E0.png" alt="enter image description here" /></p>
  <p>what is going wrong? thanks in advance.</p>