<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
This gets my vote for how I'd like to see this handled in 2.1... if we agree, shall we put in an enhancement for 2.1?<BR>
<BR>
+1<BR>
<BR>
Nice thinking, Andy.<BR>
<BR>
Anyone else?<BR>
<BR>
--Lincoln<BR>
<BR>
On Tue, 2009-09-08 at 17:28 -0400, Dan Allen wrote:
<BLOCKQUOTE TYPE=CITE>
On Fri, Sep 4, 2009 at 2:46 PM, Andy Schwartz <<A HREF="mailto:andy.schwartz@oracle.com">andy.schwartz@oracle.com</A>> wrote:<BR>
<BLOCKQUOTE>
Finally read through this thread.
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
I'm finally returning to it ;) It's been a good volley.<BR>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
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:<BR>
<BR>
<BLOCKQUOTE>
#{bb.valueChangeListener(event, myparam)}<BR>
</BLOCKQUOTE>
<BR>
<BR>
Where bb.valueChangeListener is bound to:
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
<BR>
<BR>
<BR>
<BLOCKQUOTE>
public void valueChangeListener(ValueChangeEvent ev, String myparam) {}<BR>
</BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
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.
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
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).<BR>
<BR>
-Dan<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
-- <BR>
Dan Allen<BR>
Senior Software Engineer, Red Hat | Author of Seam in Action<BR>
Registered Linux User #231597<BR>
<BR>
<A HREF="http://mojavelinux.com">http://mojavelinux.com</A><BR>
<A HREF="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</A><BR>
<A HREF="http://in.relation.to/Bloggers/Dan">http://in.relation.to/Bloggers/Dan</A><BR>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
--<BR>
<B>Lincoln Baxter, III</B><BR>
Co-Founder of <A HREF="http://ocpsoft.com">OcpSoft</A><BR>
Author of <A HREF="http://ocpsoft.com/prettyfaces">PrettyFaces</A> URL Rewriting for JSF<BR>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>