1 Reply Latest reply on Nov 5, 2008 5:26 AM by Ilya Shaikovsky

    rich:messages shows all messages instead of actual message

    nimo stephan Master

      How can force that the rich:messages shows the message only for the component which causes the message?

      Now, the rich:message shows all messages (warnings, failures, informations).

      For example:

      <s:div id="name">
      <h:inputText id="nameValue" value="..." required="true">
      <a4j:support event="onblur" reRender="name" bypassUpdates="true" />
       <rich:message for="nameValue"/>
      <s:div id="age">
      <h:inputText id="ageValue" value="..." required="true">
      <a4j:support event="onblur" reRender="age" bypassUpdates="true" />
       <rich:message for="ageValue"/>

      Now, when I enter the inputText nameValue and leave it empty, then ALL messages occur instead of only the message for inputText:

      - Name required
      - Age required

      I want that only the message

      - Name required

      occurs instead of all messages.

      Another point is, that all rich:message-tags also become reRendered, even I explicitly say only reRender="name".

      How can I avoid this ?