Hi Thiago!

Do you have a commit access? It would be nice to have these changes in the next 
release, you seems to be the only one who is interested :).

Denis

On Jul 22, 2011, at 11:28 PM, Thiago H. de Paula Figueiredo wrote:

> On Wed, 20 Jul 2011 06:34:04 -0300, Denis Stepanov <[email protected]> 
> wrote:
> 
>> Hello all,
> 
> Hi!
> 
>> I have improved coercion from List to SelectModel, right now you need to 
>> create SelectModel for Select component, but in the situation when we know 
>> how to display an object from the list we can do it just by binding 
>> collection to the model parameter.
>> 
>> There is a new interface ValueLabelProvider to provide a label from the 
>> object. The coercion will use the global messages catalog not the component 
>> one so it could confuse a user.
> 
> Interestingly, I was thinking of doing the same or something very similar. :) 
> I'd not name it ValueLabelProvider, as it could be useful for non SelectModel 
> scenarios too. http://tapestry.apache.org/developer-bible.html has some 
> Tapestry class and method naming conventions, but I don't know which one 
> would be the ideal for this case. What about LabelProvider?
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to