javaserverfaces-spec-public
  1. javaserverfaces-spec-public
  2. JAVASERVERFACES_SPEC_PUBLIC-1125

Clarify that SystemEvent and ComponentSystemEvent subscription changes must not be made during the listener for an event.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.1, 2.0 Rev a, 2.1 Rev a
    • Fix Version/s: 2.2 Sprint 13
    • Component/s: Components/Renderers
    • Labels:
      None

      Description

      Class javax.faces.application.Application has several methods that allow subscribing and un-subscribing for notification for System and ComponentSystem events. The spec must clarify that these methods must not be called during the handling of an event.

        Issue Links

          Activity

          Hide
          Ed Burns added a comment -

          Sending jsf-api/src/main/java/javax/faces/application/Application.java
          Transmitting file data .
          Committed revision 10373.
          SECTION: Modified Files
          ----------------------------
          M jsf-api/src/main/java/javax/faces/application/Application.java

          • Add this text to

          public void subscribeToEvent(java.lang.Class<? extends SystemEvent> systemEventClass,
          java.lang.Class<?> sourceClass,
          SystemEventListener listener)

          It is valid to call this method during the processing of an event
          which was subscribed to by a previous call to this method.

          • In all other variants of subscribeToEvent() and
            unsubscribeFromEvent(), refer to the preceding text.
          Show
          Ed Burns added a comment - Sending jsf-api/src/main/java/javax/faces/application/Application.java Transmitting file data . Committed revision 10373. SECTION: Modified Files ---------------------------- M jsf-api/src/main/java/javax/faces/application/Application.java Add this text to public void subscribeToEvent(java.lang.Class<? extends SystemEvent> systemEventClass, java.lang.Class<?> sourceClass, SystemEventListener listener) It is valid to call this method during the processing of an event which was subscribed to by a previous call to this method. In all other variants of subscribeToEvent() and unsubscribeFromEvent(), refer to the preceding text.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: