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

lincolnbaxter at gmail.com lincolnbaxter at gmail.com
Fri Sep 4 15:30:33 EDT 2009


I didn't want to go that route because it wouldn't have used the existing tags designed for actionlistening and etc, therby introducing another thing people would have to learn, whereas this sort of silently/naturally extends the existing tags. 

I don't see any reason why we couldn't, but ill leave that to others to discuss since I'm not as familiar with f:event

Lincoln


Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: Andy Schwartz <andy.schwartz at oracle.com>

Date: Fri, 04 Sep 2009 15:23:28 
To: <jsr-314-open at jcp.org>
Cc: <lincolnbaxter at gmail.com>
Subject: Re: [jsr-314-open] <h:dataTable> binding vs. ui:repeat


Hi Ken -

Ken Paulsen wrote:
>
> This comment may be way too late... but I would rather have seen (and 
> thought I did see) us go in the direction:
>
>     <f:event type="valueChange" action="#{...}" />

I do remember some discussion of providing component system events for 
events that are currently handled via FacesEvents (valueChange, action), 
but I guess we never reached a resolution on this.  If we were to add 
such system events, are you thinking that these should replace the 
existing FacesEvents (ValueChangeEvent, ActionEvent)?  Or would the new 
system events simply complement the corresponding FacesEvents?

Andy

>
> This reduces tag explosion, is easy to extend, and makes it simple for 
> add-on frameworks to leverage an event model (vs. lots of 1-off tags 
> for different tasks).
>
> If this is indeed way too late, or I'm misinterpreting this... please 
> disregard. ;)
>
> Cheers!
>
> Ken
>
>
> Lincoln Baxter, III wrote:
>> FYI -- a sneak peek. This is working -- with seam el in this example, 
>> of course.
>>
>> Comment now "or forever hold your peace unless it needs to be 
>> changed"   ;)
>>
>>
>> <a:editText value="#{viewProjectBean.project.vision}" 
>> rendered="#{authorizationBean.isOwner}" >
>>
>>     *<f:valueChangeListener for="value" 
>> action="#{viewProjectBean.test('foo')}" />*
>>
>>     <f:actionListener for="submit" 
>> binding="#{viewProjectBean.projectChangeListener}" />
>>     <f:converter for="output" converterId="webLinkConverter"/>
>> </a:editText>
>>
>>
>>
>> --Lincoln
>>
>> --
>> *Lincoln Baxter, III*
>> Co-Founder of OcpSoft <http://ocpsoft.com>
>> Author of PrettyFaces <http://ocpsoft.com/prettyfaces> URL Rewriting 
>> for JSF
>>
>>



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