I fetch the data in the form of a list and i'm using a ListDataProvider for that. I'm unable to change the contents of ListDataProvider dynamically since the List is private. So I have my version of ListDataProvider that allows me to set the list later as well.
On 1/12/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > the dataprovider is quieried every request for the data, so manipulate the > data in the object that the idataprovider represents instead of changing the > idataprovider directly. will that do? if not i can add a setDataProvider() > method, but i thought it would be unnecessary. > > -Igor > > > > On 1/12/06, karthik Guru <[EMAIL PROTECTED]> wrote: > > > > 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 > > > > > > > > > > > > > > > > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
