1 Reply Latest reply on Feb 19, 2010 4:23 AM by ilya_shaikovsky

    <rich:messages> grouping

      Hi All

         i have a project page which is distributed in several panels (or groups you can say). Each panel his having some input components. I am carrying out the validations correctly, and whatever the errors i am getting, i am creating a faces messages there.

       

        Now i am using <rich:messages> for displaying these facesMessage. But my requirement is, i should group the error messsage for one panel at a single locaiton (like just before that panel), and similarly messages for other panels will go to their respective places. As i have used <rich:messages> tag, all the messages are getting displayed everywhere. Means even the errors in second panel are displayed in first one.

      I tried using the <rich:messages for=""> but if i am mentioning the value in for then no errors are read and displayed anywhere.

       

       

      Do we have any solution on this? Any help would be appreciated, thanks in advance.

       

       

      Best Regard !!

        • 1. Re: <rich:messages> grouping
          ilya_shaikovsky

          1) if inputs in your panels are processed separatelly (you not need to process inputs of the one panel if button clicked in the other) and the same for updates (you not neet to reRender one panel from another) -- you could use a4j:region with renderRegionOnly="true" around the panels

          2) you could set ajaxRendered on the messages as false and reRender them on your own

          2.1) check that thread for more common solution http://community.jboss.org/message/527102#527102