Hi Igor I am extending the SortableDataProvider and the model method is returning a new CompountPropertyModel which includes my own entity model. The entity model is a loadabledetacheabble model which only keeps the id. on load the data will be retrieved from the database.
https://ninan.svn.sourceforge.net/svnroot/ninan/branches/v2.0.0/ninan-frontend/src/main/java/dk/team/ninan/frontend/wicket/overview/OverviewDataProvider.java /Murat 2009/3/28 Igor Vaynberg <[email protected]> > your problem is most likely that you are not using proper models. > > in your idataprovider.model you should return a model that can load > the data from the database on its own. you are most likely just doing > return new model(object); which simply holds on to that object > forever, what you should do is return new entitymodel(object) that can > reload a fresh one. > > -igor > > 2009/3/27 Murat Yücel <[email protected]>: > > Hi All > > > > I have a question regarding how to add AjaxSelfUpdatingTimerBehaviors to > > some of the cells in a datatable. > > What is the best practice and should i use something else? > > > > Today i have a list of items which is retrieved from the database each > time > > there is a request. The refresh > > rate can be set by the user in a setting page. I have made a quick > solution > > where i was adding an > > AjaxSelfUpdatingTimerBehavior to the whole table. It is working perfectly > > fine for high refresh rates, but > > if the user sets the refresh rate to 1 second then the refresh gives > > problem. > > > > The AjaxFallbackDefaultDataTable includes checkboxes and is inside a > form. I > > am now trying to change > > the logic so only the relevant cells are updated. The problem is that i > > cannot figure out how to do it. Because > > the model for each item will be called but the dataprovider is not called > to > > retrieve the newest data from the > > database. > > > > Hope that someone can help or suggest a better solution. > > > > The project is open source so if you need to see code you just say the > word > > :) > > > > Kind regards > > > > /Murat > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
