Details

    • Type: New Feature New Feature
    • 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:
      240
    • Status Whiteboard:
      Hide

      EGTop5 effort_moderate cat2 frame size_medium importance_large draft

      Show
      EGTop5 effort_moderate cat2 frame size_medium importance_large draft

      Description

      Often it would be usefull be able to attach a event-listener to the jsf-
      framework. But the framework does not fire events...
      Eg: after successfull initialization I would like to get a event with a
      reference to the completed runtime-config > I could register used custom
      components (eg. for license fees), during dev: dump out the complete config-info
      Or: after a successfull component-tree-creation a event carying a reference to
      the component-tree -> I could check whether I need to inject some values into
      managed beans used in the components in the tree (an idea for a http-GET
      interface)

      Most probably other events might prove usefull as well...

      1. message.txt
        38 kB
        Ed Burns
      2. message.txt
        37 kB
        Ed Burns

        Issue Links

          Activity

          ajesse created issue -
          Hide
          Ed Burns added a comment -

          This issue is already on the list of issues to be addressed in JSF 2.0.

          Show
          Ed Burns added a comment - This issue is already on the list of issues to be addressed in JSF 2.0.
          Hide
          Ed Burns added a comment -

          Created an attachment (id=123)
          First part of fixing this bug, first iteration.

          Show
          Ed Burns added a comment - Created an attachment (id=123) First part of fixing this bug, first iteration.
          Hide
          Ed Burns added a comment -

          Created an attachment (id=124)
          First part of fixing this bug, second iteration.

          Show
          Ed Burns added a comment - Created an attachment (id=124) First part of fixing this bug, second iteration.
          Hide
          Ed Burns added a comment -

          290 blocks this.

          Show
          Ed Burns added a comment - 290 blocks this.
          Hide
          Ryan Lubke added a comment -

          Depends on 178.

          Show
          Ryan Lubke added a comment - Depends on 178.
          Hide
          Ryan Lubke added a comment -

          Adding 443 as dependency.

          Show
          Ryan Lubke added a comment - Adding 443 as dependency.
          Hide
          Ryan Lubke added a comment -

          Also consider a ComponentCreatedEvent.

          Show
          Ryan Lubke added a comment - Also consider a ComponentCreatedEvent.
          Hide
          Ryan Lubke added a comment -

          Request from a 314 observer:

          ---------------------------------------

          I did not able to send this email to JSR-314 EG because not member of
          it. But I think maybe useful to add two other listener
          and event to the Kito D. listener list; these are

          • ConverterInvokedEvent/ConverterInvokedListener

          public ConverterInvokedListener extends EventListener

          { public void beforeConverterInvoked(ConverterInvokedEvent event) ; public void afterConverterInvoked(ConverterInvokedEvent event); }

          public ConverterInvokedEvent extends EventObject

          { public FacesContext getContext(); public String getEventType(); //Before or After public boolean isExceptionThrown(); //If converter exception throws public ConverterException getException(); public UIComponent getComponent(); }
          • ValidatorInvokedEvent/ValidatorInvokedListener

          public ValidatorInvokedListener extends EventListener

          { public void beforeValidatorInvoked(ValidatorInvokedEvent event) ; public void afterValidatorInvoked(ValidatorInvokedEvent event); }

          public ConverterInvokedEvent extends EventObject

          { public FacesContext getContext(); public String getEventType(); //Before or After public boolean isExceptionThrown(); //If converter exception throws public ValidatorException getException(); public UIComponent getComponent(); }
          Show
          Ryan Lubke added a comment - Request from a 314 observer: --------------------------------------- I did not able to send this email to JSR-314 EG because not member of it. But I think maybe useful to add two other listener and event to the Kito D. listener list; these are ConverterInvokedEvent/ConverterInvokedListener public ConverterInvokedListener extends EventListener { public void beforeConverterInvoked(ConverterInvokedEvent event) ; public void afterConverterInvoked(ConverterInvokedEvent event); } public ConverterInvokedEvent extends EventObject { public FacesContext getContext(); public String getEventType(); //Before or After public boolean isExceptionThrown(); //If converter exception throws public ConverterException getException(); public UIComponent getComponent(); } ValidatorInvokedEvent/ValidatorInvokedListener public ValidatorInvokedListener extends EventListener { public void beforeValidatorInvoked(ValidatorInvokedEvent event) ; public void afterValidatorInvoked(ValidatorInvokedEvent event); } public ConverterInvokedEvent extends EventObject { public FacesContext getContext(); public String getEventType(); //Before or After public boolean isExceptionThrown(); //If converter exception throws public ValidatorException getException(); public UIComponent getComponent(); }
          Hide
          Ed Burns added a comment -

          Will mark 491 as dup of this.

          Show
          Ed Burns added a comment - Will mark 491 as dup of this.
          Hide
          Ed Burns added a comment -
              • Issue 491 has been marked as a duplicate of this issue. ***
          Show
          Ed Burns added a comment - Issue 491 has been marked as a duplicate of this issue. ***
          Hide
          Ed Burns added a comment -

          ConverterInvokedEvent

          I assert that we don't need this since we have the validate events.

          ComponentCreatedEvent

          I assert that we don't need this because you could decorate Application
          and override its createComponent* methods.

          Show
          Ed Burns added a comment - ConverterInvokedEvent I assert that we don't need this since we have the validate events. ComponentCreatedEvent I assert that we don't need this because you could decorate Application and override its createComponent* methods.
          Hide
          Ed Burns added a comment -

          We should have system events for pre and post every lifecycle phase.

          Show
          Ed Burns added a comment - We should have system events for pre and post every lifecycle phase.
          Hide
          Ed Burns added a comment -

          From: Gurkan Erdogdu <gurkanerdogdu@yahoo.com>
          Sender: dev-return-1710-ed.burns=sun.com@javaserverfaces.dev.java.net
          To: dev@javaserverfaces.dev.java.net
          Subject: Re: [240-Megalisteners] Naming
          Date: Mon, 14 Apr 2008 10:02:33 -0700 (PDT)
          Content-type: multipart/alternative;
          boundary="Boundary_(ID_uuZw7vnbr+OC0VpICackyA)"
          MIME-version: 1.0

          Yeap. If not getting exception than able to get this from event.

          public void beforeConverterInvoked(ConverterInvokedEvent event)

          { public Object getLocalValue(); // Gets the local, unconverted value }

          public void afterConverterInvoked(ConverterInvokedEvent event)

          { public Object getConvertedValue(); //Gets the converted value after conversion }

          Thanks;

          Gurkan

          Show
          Ed Burns added a comment - From: Gurkan Erdogdu <gurkanerdogdu@yahoo.com> Sender: dev-return-1710-ed.burns=sun.com@javaserverfaces.dev.java.net To: dev@javaserverfaces.dev.java.net Subject: Re: [240-Megalisteners] Naming Date: Mon, 14 Apr 2008 10:02:33 -0700 (PDT) Content-type: multipart/alternative; boundary="Boundary_(ID_uuZw7vnbr+OC0VpICackyA)" MIME-version: 1.0 Yeap. If not getting exception than able to get this from event. public void beforeConverterInvoked(ConverterInvokedEvent event) { public Object getLocalValue(); // Gets the local, unconverted value } public void afterConverterInvoked(ConverterInvokedEvent event) { public Object getConvertedValue(); //Gets the converted value after conversion } Thanks; Gurkan
          Hide
          Ed Burns added a comment -

          Move to 2.1

          Show
          Ed Burns added a comment - Move to 2.1
          Hide
          Ed Burns added a comment -

          Prepare to delete api subcomponent

          Show
          Ed Burns added a comment - Prepare to delete api subcomponent
          Hide
          Ed Burns added a comment -

          Move these to unscheduled because we need to target them correctly. 2.next isn't
          specific enough.

          Show
          Ed Burns added a comment - Move these to unscheduled because we need to target them correctly. 2.next isn't specific enough.
          Hide
          Ed Burns added a comment -

          At JSFdays last week, Leonardo Uribe suggested we add events for iterating components. Iteration
          begin, etc.

          Show
          Ed Burns added a comment - At JSFdays last week, Leonardo Uribe suggested we add events for iterating components. Iteration begin, etc.
          Hide
          Ed Burns added a comment -

          cat2

          Show
          Ed Burns added a comment - cat2
          Hide
          Ed Burns added a comment -

          frame

          Show
          Ed Burns added a comment - frame
          Hide
          Ed Burns added a comment -

          lifecycle

          Show
          Ed Burns added a comment - lifecycle
          Hide
          Ed Burns added a comment -

          These are targeted at 2.1.

          Show
          Ed Burns added a comment - These are targeted at 2.1.
          Hide
          Ed Burns added a comment -

          triage

          Show
          Ed Burns added a comment - triage
          Hide
          Ed Burns added a comment -

          GlassFish 3.1 M6 at the latest.

          Show
          Ed Burns added a comment - GlassFish 3.1 M6 at the latest.
          Hide
          Ed Burns added a comment -

          Move these to M5

          Show
          Ed Burns added a comment - Move these to M5
          Hide
          Ed Burns added a comment -

          Move these to 2.2

          Show
          Ed Burns added a comment - Move these to 2.2
          Hide
          Ed Burns added a comment -

          Another event that we need is one that allows the installation of a client side JavaScript listener that will be
          called, on the client side when the user tries to navigate away from the current view. The listener must
          have the ability to veto the navigation. This feature could be used to allow developers to throw up a modal
          dialog saying something like, "you have unsaved changes in this page, are you sure you want to discard
          them?" and have the chance to cancel the navigation.

          Show
          Ed Burns added a comment - Another event that we need is one that allows the installation of a client side JavaScript listener that will be called, on the client side when the user tries to navigate away from the current view. The listener must have the ability to veto the navigation. This feature could be used to allow developers to throw up a modal dialog saying something like, "you have unsaved changes in this page, are you sure you want to discard them?" and have the chance to cancel the navigation.
          kenaiadmin made changes -
          Field Original Value New Value
          issue.field.bugzillaimportkey 240 19845
          made changes -
          Ed Burns made changes -
          Status Whiteboard EGTop5 effort_moderate cat2 frame size_medium importance_large EGTop5 effort_moderate cat2 frame size_medium importance_large draft
          Ed Burns made changes -
          Assignee Ed Burns [ edburns ]
          Ed Burns made changes -
          Fix Version/s 2.3 [ 16372 ]
          Fix Version/s 2.2 [ 10403 ]
          Hide
          Ed Burns added a comment -

          Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

          Show
          Ed Burns added a comment - Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.
          Ed Burns made changes -
          Priority Major [ 3 ] Trivial [ 5 ]
          Fix Version/s 2.3 [ 16372 ]
          Hide
          Ed Burns added a comment -

          Leave at current priority.

          Show
          Ed Burns added a comment - Leave at current priority.
          Ed Burns made changes -
          Priority Trivial [ 5 ] Minor [ 4 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              ajesse
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: