[jsr-314-open] <h:dataTable> binding vs. ui:repeat

Pete Muir pmuir at redhat.com
Sun Sep 6 09:09:34 EDT 2009


On 4 Sep 2009, at 19:46, Andy Schwartz wrote:

> 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.
>
> This seems like a perfectly reasonable solution to me, and doesn't  
> require any special handling of expected/actual parameter types in  
> the EL layer.

IMO this is a far superior solution, as it is also far easier  
understand - adding implicit parameters is very confusing!




More information about the jsr-314-open-mirror mailing list