Thanks for the prompt response. Do you know of an implementation that does similar to what I'm doing? I've been playing with the SelectModel and OptionGroupModel and OptionModel and their underlying implementations I don't think I'm doing this the right way. Care to share your code for this ?
On 5/3/07, Weisu <[EMAIL PROTECTED]> wrote:
You can use List or TreeMap in T5.0.3. William Keller wrote: > > I briefly tried out T5 (5.0.3) yesterday and was impressed! One of the > areas > I couldn't convert my app easily though, was the Select boxes (that > required > IPropertySelectionModel). Currently, in T4 I use a global static helper > that > automatically prepares my lists as per code: > > <code> > public class PropertySelectionHelper > { > public static IPropertySelectionModel wrapPropertySelection(List list, > String nameProperty) > { > return new LabeledPropertySelectionModel( > new BeanPropertySelectionModel(list, nameProperty), > " -- Choose --"); > } > } > </code> > > My only issue here is, how do I implement the equivalent in T5? Haven't > been > able to find clear cut documentation, and I'm afraid that my select > options > are a bit more complex than Enum's. Any help would be appreciated (so I > can > evaluate this better!) > > Cheers > > -- View this message in context: http://www.nabble.com/T5%3A-SelectModel-vs-T4-IPropertySelectionModel-tf3683894.html#a10297714 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]