1 Reply Latest reply on Mar 10, 2011 9:57 AM by Ilya Shaikovsky

    RF 4 CR1: <rich:messages/>

    Jesper Vrelits Newbie

      Hi!

       

      I've been working with the grapValidator and have some questions:

       

      1)

       

      I have this to display global messages:

       

      <h:panelGrid columns="2">

                          <f:facet name="header">

                              <rich:messages globalOnly="true"/>

                          </f:facet>

       

      but when globalOnly is true it is displayed at the bottom of the page with a DOT.

       

      If globalOnly=false it is displayed where I suspect (at top of grid) with an error icon.

       

      Why this difference depending on setting of globalOnly?

       

      2)

       

      Even though globalOnly is true it also display messages that are displayed for <rich:message for="somefield"/>

       

      3)

       

      If I make a cross validation using @AssertTrue is there a way I can make it a "local" message that will be displayed for <rich:message for="somefield"/> and not be displayed by <rich:messages globalOnly="true"/>. As far as I can see this is not possible. Is that correct?

       

      Also if I code it ala

       

      context.buildConstraintViolationWithTemplate("{deployment.cmxno}").addNode("cmxno").addConstraintViolation();

       

      it does not seem to attatch to <rich:message for="cmxno"/>