On Fri, Sep 4, 2009 at 2:46 PM, Andy Schwartz <andy.schwartz@oracle.com> wrote:
Finally read through this thread.

I'm finally returning to it ;) It's been a good volley.

An alternative that I believe we could implement in the JSF layer without any changes to the EL spec would be to provdie access to an implicit "event" object during event delivery.  The page author would specify:

#{bb.valueChangeListener(event, myparam)}

Where bb.valueChangeListener is bound to:

public void valueChangeListener(ValueChangeEvent ev, String myparam) {}

And the "event" implicit object is set up by JSF to point to the ValueChangeEvent (or more generally, to whatever FacesEvent we happen to be delivering) just prior to invoking any listeners.

Brilliant. This nicely parallels JavaScript's implicit this and event variable and aligns nicely with the implicit variables we have added for composite components (developers will be used to it).


Dan Allen
Senior Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597