Johan Compagner wrote:
> 
>>
>>
>> SortingModel (IChainingModel) -> AppendingListModel
>> (IComponentAssignmentModel) -> HibernateListModel (database oriented
>> model
>> that returns a list of items from the db, unsorted).
> 
> 
> 
> So the sorting model is the outside one that you give to the component
> 
> But if we then go through that chained model and see the
> AppendingListModel
> and we say ok wrap. Aren't we then by by passing the sort?? Because
> if the component then ask its model the data. It doesn't go through the
> sorting model.
> 
> johan
> 
> 

Not with my impl.  In the case of a chained model, the wrapped model is
inserted into the chain in the place of the model it is wrapping.  So that
sort will still occur, but it will get it's list from the wrapped model.

I posted some of the files on another message in this thread.

Chuck
-- 
View this message in context: 
http://www.nabble.com/Component.wrap-and-IChainingModel-tf4759201.html#a13654085
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to