Hi Igor,
 
DataView in wicket 1.2 does'nt accept a Model and instead accepts only IDataProvider. I need to change the contents of the ListDataProvider dynamically. Earlier (1.1) I c'd get this working through Model.getObject( ) where i used to return a different ListDataProvider.
 
DataViewBase.internalGetDataProvider( ) is final so am unable to override it in my DataView derived class.
What do you think is the best way to accomplish this now?
 
thanks
karthik

 
On 1/4/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
this is the right approach. this is exactly why the listview either takes a collection instance or an imodel instance instead.

-Igor



On 1/3/06, karthik Guru <[EMAIL PROTECTED] > wrote:
I'm want to be able to supply the ListView with a IModel that tells it how to get to the list. I'm not in a position to supply the List at the time of construction. The ListView needs to fetch it while rendering. So i supplied a Model configured with the "List source" with its getObject(Component) call overriden (where I fetch the list ). Ofcourse it works just fine!
My question is - Is this an acceptable way of using a Model / is there a better delegation model built in that I can use to do such things ? 
 
thanks,
karthik
 


Reply via email to