iterator() should not be called if the panel that has the datatable is not visible and is not about to be painted.

but anyways, you can cache the data in the dataprovider for as long as you want, and then just clear the cache whenever you want the state to be requeried from thte db

-igor

On 11/4/06, Stefan Lindner <[EMAIL PROTECTED]> wrote:
To explain my problem a little bit more:



The DataTable is built from a database. To avoid unnecessary
transactions, I want to minimize the access to the database.

The SortableDataprovider's size() and iterator() methods are called
every time I display the panel by klicking on his AjaxTabbedPanels's
link.

So I place a special link on the page that means "now update the content
of all panels in my AjaxTabbedPanel panels. But not all of the Panels in
My AjaxTabbedPanel may be chosen by the user so I do not need to reload
all their contents from database unless the panel is re-displayed. Is
there any event/method I can catch/override that is called before a
Panel is re-displayed? The beforeRender method doesn't the trick,
because the size() and iteraotr() methods of the Panels's DataTables are
called before.



Stefan Lindner


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to