title: JSF and Ajax validation - How to update message panels for ALL messages?
body: <p>I want to do validate all input fields with AJAX.</p>
  
  <p>For example, there are 3 input fields. Two of them require minimum length of 3 characters and the other is validated by a simple regex. For <code>&lt;f:ajax&gt;</code> I set up the keyup event to quickly see the ajax validation coming up. A complete example may look like this:</p>
  
  <pre><code>   &lt;h:form&gt;
         &lt;h:messages id="messages" /&gt;
         &lt;h:inputText id="text1" value="#{bean.text1}"&gt;
             &lt;f:validateLength minimum="3" /&gt;
             &lt;f:ajax execute="@this" event="keyup" render="messages" /&gt;
         &lt;/h:inputText&gt;
  
         &lt;h:inputText id="text2" value="#{bean.text2}"&gt;
             &lt;f:validateLength minimum="3" /&gt;
             &lt;f:ajax execute="@this" event="keyup" render="messages" /&gt;
         &lt;/h:inputText&gt;
  
          &lt;h:inputText id="text3" value="#{bean.text3}"&gt;
              &lt;f:validateRegex pattern="[A-Z][a-zA-Z]*" /&gt;
              &lt;f:ajax execute="@this" event="keyup" render="messages" /&gt;
          &lt;/h:inputText&gt;
      &lt;/h:form&gt;
  </code></pre>
  
  <p>Once I leave the input first input field with an error and jump to the 2nd field and type invalid stuff there, the message from the first invalid field disappears, since the messages are rerendered! Setting execute to @form, will cause all fields to be validated, once I start typing within the first input field.</p>
  
  <p><strong>So my question is:
  How to display ALL validation errors with AJAX and not only the last message from the last invalid field?</strong></p>
  
  <p>P.S.: Im using Mojarra 2.0.3 (+ Richfaces + Primefaces) on Websphere</p>