Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.2.3.Final, 4.2.4, 4.3.0.Final, 4.3.1, 4.3.2, 4.3.3
    • Fix Version/s: 4.3.4
    • Component/s: component-output
    • Labels:
    • Sprint:
      RichFaces 4.3.4 Sprint

      Description

      The FacesMessage Severity levels do not match between Mojarra and MyFaces. As a result, the CSS styling for INFO messages are one level higher than they should be, and FATAL messages are unstyled.

      Mojarra - These represent values 0-3

          /**
           * <p>Array of all defined values, ascending order of ordinal value.
           *  Be sure you include any new instances created above, in the
           * same order.</p>
           */
          private static final Severity[] values =
          { SEVERITY_INFO, SEVERITY_WARN, SEVERITY_ERROR, SEVERITY_FATAL };
      

      MyFaces - These represent values 1-4

      /**
           * Message severity level indicating an informational message rather than an error.
           */
          public static final FacesMessage.Severity SEVERITY_INFO = new Severity("Info", 1);
      
          /**
           * Message severity level indicating that an error might have occurred.
           */
          public static final FacesMessage.Severity SEVERITY_WARN = new Severity("Warn", 2);
      
          /**
           * Message severity level indicating that an error has occurred.
           */
          public static final FacesMessage.Severity SEVERITY_ERROR = new Severity("Error", 3);
      
          /**
           * Message severity level indicating that a serious error has occurred.
           */
          public static final FacesMessage.Severity SEVERITY_FATAL = new Severity("Fatal", 4);
      

      The <rich:messages/> component behaves correctly, and may be used as an alternative.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lfryc Lukáš Fryč
                Reporter:
                jyeary John Yeary
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 30 minutes
                  30m
                  Remaining:
                  Remaining Estimate - 30 minutes
                  30m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified