Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1, 2.2
    • Fix Version/s: 2.3
    • Component/s: Lifecycle
    • Labels:
      None

      Description

      Exception handling for phase listeners behaves differently depending on if they are registered globally in faces-config.xml or with f:phaseListener for a particular view root.

      In the first (global) case any exception thrown by them gets forwarded to an exception handler as described in the spec.

      In the second (per view root) case all exceptions get logged and swallowed as described in the UIViewRoot documentation.

      This inconsistent behavior adds increased complexity when implementing PhaseListeners. Ideally both cases should forward any exception to the exception handler so they can be handled there.

      See also the discussion of the problem in: https://java.net/jira/browse/JAVASERVERFACES-2985

        Issue Links

          Activity

          frederickkaempfer created issue -
          Ed Burns made changes -
          Field Original Value New Value
          Assignee Ed Burns [ edburns ]
          Ed Burns made changes -
          Priority Major [ 3 ] Trivial [ 5 ]
          Ed Burns made changes -
          Priority Trivial [ 5 ] Minor [ 4 ]
          Ed Burns made changes -
          Link This issue is related to JAVASERVERFACES-4054 [ JAVASERVERFACES-4054 ]
          Ed Burns made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Assignee Ed Burns [ edburns ]
          Ed Burns made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Fix Version/s 2.3 [ 16372 ]
          Resolution Fixed [ 1 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: