title: jsf1.2 rich:messages duplicating validation of rich:message in the same form
body: <p>I am preparing a registration page using JSF/Spring webflow&amp;mvc application. I have added two side validation one in client side every input fields has its own rich:message and other one at server side, registration bean response as facescontext.addMessage(). My problem when I try to test validation, rich:message components show errors correct but rich:messages show same errors as well. I want to use messages just for specific errors, something like mail already exist in database.</p>
  
  <p><strong>my rich:messages tag:</strong></p>
  
  <pre><code>&lt;rich:messages id="msg" layout="table" limitRender="true"
              style="font-weight:bold;color:#BDBDBD"&gt;
              &lt;f:facet name="errorMarker"&gt;
                  &lt;h:graphicImage url="/images/messages_error.png" /&gt;
              &lt;/f:facet&gt;
          &lt;/rich:messages&gt;
  
  &lt;h:form ...&gt;
     .....SOME LOGIC.....
  
  &lt;h:inputText id="i_ln" required="true" value="#{regBean.lastName}"&gt;
      &lt;f:validateLength minimum="2" maximum="35" /&gt;
      &lt;rich:ajaxValidator event="onblur" /&gt;
  &lt;/h:inputText&gt;
  &lt;rich:message for="i_ln"&gt;
      &lt;f:facet name="errorMarker"&gt;
         &lt;h:graphicImage url="/images/messages_error.png" /&gt;
      &lt;/f:facet&gt;
  &lt;/rich:message&gt;
         .....
      &lt;/h:form&gt;
  </code></pre>
  
  <p>I have checked similar issues that people advice to use globalOnly="true" and when I use this attribute then duplicate validation stops but I am not able to add severity error. My oytput as below:</p>
  
  <pre><code>Feb 07, 2012 10:08:04 PM com.sun.faces.lifecycle.RenderResponsePhase execute
  INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
  sourceId=i_comment[severity=(ERROR 2), summary=(Eingabe wird benötigt.), detail=(Eingabe wird benötigt.)]
  sourceId=i_title[severity=(ERROR 2), summary=(Eingabe wird benötigt.), detail=(Eingabe wird benötigt.)]
  sourceId=i_salut[severity=(ERROR 2), summary=(Eingabe wird benötigt.), detail=(Eingabe wird benötigt.)]
  sourceId=i_mobile[severity=(ERROR 2), summary=(Eingabe wird benötigt.), detail=(Eingabe wird benötigt.)]
  sourceId=i_fax[severity=(ERROR 2), summary=(Eingabe wird benötigt.), detail=(Eingabe wird benötigt.)]
  </code></pre>
  
  <p>Another question is should I keep server side validation? </p>