Rereading the link
http://cwiki.apache.org/WICKET/reading-from-a-database.html
http://cwiki.apache.org/WICKET/reading-from-a-database.html
clearly says that the objects are created only once, this includes the List
results i guess. But the line --
results = getResultsFromCriteria(criteria);
is
Vasu Srinivasan schrieb:
Hello:
I have a simple search form , where some criteria refreshes the table based
on the db. I got it working with ListView, but im trying to use
ListDataProvider, I feel missing something:
the trick that worked for me:
just re-use the existing list instance.
final
you can build your own analog of listdataprovider that pulls the list
directly from whatever property contains the latest.
-igor
On Tue, May 26, 2009 at 9:38 AM, Vasu Srinivasan vasy...@gmail.com wrote:
Hello:
I have a simple search form , where some criteria refreshes the table based
on the
Thanks for the reply ...
I tried doing this :
class MyDataProvider extends ListDataProvider {
DataDao dataDao;
Criteria criteria;
public MyDataProvider(List list, Criteria criteria) {
super(list);
...
}
//providing my own iterator which goes to the dataDao and gets the
i meant implement IDataProvider directly if ListDataProvider doesnt
work for you. most of the time you modify an existing instance of
List, not create a new one, so ListDataProvider is useful there.
-igor
On Tue, May 26, 2009 at 1:15 PM, Vasu Srinivasan vasy...@gmail.com wrote:
Thanks for the
Ok I think I am understanding it a little better now.
For now Im still extending myDataProvider from ListDataProvider, but no
longer using a new ArrayList() for every search. Im clearing it out and
adding new data, which is okay.
One question though -- What is the responsibility scope of the