Re: Another example of Select with Objects

2008-02-20 Thread Marcelo Lotif
Bugs fixed =) Thanks! 2008/2/20, Davor Hrg [EMAIL PROTECTED]: public static void contributeComponentClassTransformWorker(OrderedConfigurationComponentClassTransformWorker configuration, PropertyAccess propertyAccess) { configuration.add(InjectSelectionModel, new

Another example of Select with Objects

2008-02-19 Thread Marcelo Lotif
Hi all, I posted on the wiki another example on how to make a select with objects, now i used an annotation to do this is a simpler way. http://wiki.apache.org/tapestry/Tapestry5AnotherSelectWithObjects Cheers, Marcelo Lotif

Re: Another example of Select with Objects

2008-02-19 Thread Davor Hrg
nice :) ... you should add this also in the warning section: the list must never be empty so that element type can be discovered... or this will fail: this.idFieldAdapter = access.getAdapter(list.get(0).getClass()).getPropertyAdapter(idField); or you could do some nasty reflection to get

Re: Another example of Select with Objects

2008-02-19 Thread Marcelo Lotif
Yeah, i know about that What i tried to do was just an attempt of doing things better and less effortlessly. I did this way because i don't want to say the bean type explicitly, this will be another parameter for the annotation. Thank's for the JIRA, I'll fix it, this is really a creepy piece of

Re: Another example of Select with Objects

2008-02-19 Thread Davor Hrg
public static void contributeComponentClassTransformWorker(OrderedConfigurationComponentClassTransformWorker configuration, PropertyAccess propertyAccess) { configuration.add(InjectSelectionModel, new InjectSelectionModelWorker(propertyAccess), after:Inject*); } public