Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: Lifecycle
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      912
    • Status Whiteboard:
      Hide

      size_small importance_medium

      Show
      size_small importance_medium

      Description

      A DESCRIPTION OF THE REQUEST :
      FacesMessage.Severity is a typesafe enumeration with the meaning to describe the
      severity of an error message displayed using JSF. As a typesafe enumeration, it
      is basically a simple class reference without any transient meaning. This class
      is unfortunately not serializable.

      JUSTIFICATION :
      In order to create error pages which contain jsf style error descriptions (a
      summary, a detail, and a severity), it can be clever to add a FacesMessage as a
      managed bean with e.g. session scope. As such, it will fail a web session to be
      serialized e.g. in failover or server redeployment situations.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Make it serializable. Implement FacesMessage.Severity.readResolve as described
      in Joshua Bloch, Effective Java Programming Language Guide, 2001, Addison
      Wesley, Item 21.

      CUSTOMER SUBMITTED WORKAROUND :
      Store two strings regarding the error description. Hardcode or otherwise encode
      the severity.

      (Due to the construction of FacesMessage, you cannot instantiate it with a null
      Severity field without encountering a NPE)

          • (#1 of 1): 2005-09-20 22:30:34 EDT girish.manwani@sun.com

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Ed Burns
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: