3 Replies Latest reply on Sep 22, 2009 12:50 PM by joschi03

    rich:message customization

      My apologies if it's already been posted.

      I am a new user of richfaces and I am wondering if there is a way to customize rich:message(s) for each type of message (error, info) etc. at the application level.

      Thank you
      Chandra Sreeraman

        • 1. Re: rich:message customization
          joschi03

          Hi
          You can define for every type a CSS-class f.g. by errors: errorClass="cssError".
          When you add a FacesMessage to it, you can define the level with FacesMessages.SEVERITY_ERROR.

          Regards
          Joschi03

          • 2. Re: rich:message customization

             

            "joschi03" wrote:
            Hi
            You can define for every type a CSS-class f.g. by errors: errorClass="cssError".
            When you add a FacesMessage to it, you can define the level with FacesMessages.SEVERITY_ERROR.

            Regards
            Joschi03


            Thank You - I am assuming that I can do this in a common css file and RichFaces will apply it whenever it encounters these messages. Am I right?

            Chandra

            • 3. Re: rich:message customization
              joschi03

              Yeah, but don't forget to include the css. ;-)