<div class="gmail_quote">On Fri, Sep 4, 2009 at 2:46 PM, Andy Schwartz <span dir="ltr"><<a href="mailto:andy.schwartz@oracle.com">andy.schwartz@oracle.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Finally read through this thread.</blockquote><div><br>I'm finally returning to it ;) It's been a good volley.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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 class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
#{bb.valueChangeListener(event, myparam)}<br>
</blockquote>
<br>
<br>
Where bb.valueChangeListener is bound to:<div class="im"><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
public void valueChangeListener(ValueChangeEvent ev, String myparam) {}<br>
</blockquote>
<br></div>
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.<br></blockquote><div>
<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></div>
</div><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://mojavelinuxcom/seaminaction">http://mojavelinux.com/seaminaction</a><br>
<a href="http://in.relation.to/Bloggers/Dan">http://in.relation.to/Bloggers/Dan</a><br>