[JAVASERVERFACES_SPEC_PUBLIC-240] more events from the framework Created: 07/Feb/07  Updated: 12/Aug/14

Status: Open
Project: javaserverfaces-spec-public
Component/s: Lifecycle
Affects Version/s: 1.1
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: ajesse Assignee: Unassigned
Resolution: Unresolved Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Text File message.txt     Text File message.txt    
Issue Links:
Dependency
depends on JAVASERVERFACES_SPEC_PUBLIC-433 Support "view controllers" Closed
Issuezilla Id: 240
Status Whiteboard:

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...



 Comments   
Comment by Ed Burns [ 06/Mar/07 ]

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

Comment by Ed Burns [ 12/Feb/08 ]

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

Comment by Ed Burns [ 12/Feb/08 ]

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

Comment by Ed Burns [ 20/Feb/08 ]

290 blocks this.

Comment by Ryan Lubke [ 20/Aug/08 ]

Depends on 178.

Comment by Ryan Lubke [ 20/Aug/08 ]

Adding 443 as dependency.

Comment by Ryan Lubke [ 20/Aug/08 ]

Also consider a ComponentCreatedEvent.

Comment by Ryan Lubke [ 09/Sep/08 ]

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(); }
Comment by Ed Burns [ 13/Oct/08 ]

Will mark 491 as dup of this.

Comment by Ed Burns [ 13/Oct/08 ]
      • Issue 491 has been marked as a duplicate of this issue. ***
Comment by Ed Burns [ 06/Feb/09 ]

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.

Comment by Ed Burns [ 03/Apr/09 ]

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

Comment by Ed Burns [ 30/Jun/09 ]

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

Comment by Ed Burns [ 24/Sep/09 ]

Move to 2.1

Comment by Ed Burns [ 24/Nov/09 ]

Prepare to delete api subcomponent

Comment by Ed Burns [ 14/Dec/09 ]

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

Comment by Ed Burns [ 02/Mar/10 ]

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

Comment by Ed Burns [ 04/Mar/10 ]

cat2

Comment by Ed Burns [ 17/Mar/10 ]

frame

Comment by Ed Burns [ 22/Mar/10 ]

lifecycle

Comment by Ed Burns [ 15/May/10 ]

These are targeted at 2.1.

Comment by Ed Burns [ 08/Jun/10 ]

triage

Comment by Ed Burns [ 24/Jun/10 ]

GlassFish 3.1 M6 at the latest.

Comment by Ed Burns [ 24/Jun/10 ]

Move these to M5

Comment by Ed Burns [ 30/Aug/10 ]

Move these to 2.2

Comment by Ed Burns [ 23/Sep/10 ]

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.

Comment by Ed Burns [ 01/Aug/14 ]

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

Comment by Ed Burns [ 04/Aug/14 ]

Leave at current priority.

Generated at Thu Apr 27 08:35:24 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.