Web tier: servlets, JSP, Web frameworks: JSF & datatable pagination : howto avoid data loading data (ARV)
Hello, I'm just a newbie with JSF technoogy. I've implemented a pagination List class such as the one discribed in http://wiki.apache.org/myfaces/WorkingWithLargeTables. The pagination class loads a page from the backend oracle base (one select for each page). It works well, I've added a pager. My problem is that JSF implementation loads the table data on Apply Request Phase AND Render phase when I paginate. How can I avoid the data loading during the Apply Request Phase ? I'm using JSF 1.0 and RAD 6.0 to build my sample app. Thanks for your help !
- Posted by: Dupont Martin
- Posted on: October 09 2006 09:54 EDT
- Re: JSF & datatable pagination : howto avoid data loading data ( by Rene Zanner on October 09 2006 10:14 EDT
You can use a request attribute that you set when loading the data the first time. When this request attribute is not set, you have to load the data from the database, otherwise you skip the db call. Hope that helps, René