Dmitry Kandalov wrote: > > On Thursday 08 November 2007 23:28:40 ChuckDeal wrote: >> > Perhaps I didn't get the explanation but why can't you wrap models in >> > this order? >> > >> > AppendingListModel( >> > SortingModel( >> > HibernateListModel() >> > ) >> > ) >> >> In that order the list would be sorting PRIOR to appending the item, >> which >> could result in an unsorted list. In the order I specified, the item >> would >> get appeneded and then the sort would take place. > > You're right. But if you were not using List you could return SortedSet > from > SortingModel and it would work :) >
But then I'd be using a Set instead of a List. DropDownChoice (via AbstractChoice) expects the choices model to represent a List. Chuck -- View this message in context: http://www.nabble.com/Component.wrap-and-IChainingModel-tf4759201.html#a13710989 Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
