Discussions
Web tier: servlets, JSP, Web frameworks: JSF & datatable pagination : howto avoid data loading data (ARV)
-
JSF & datatable pagination : howto avoid data loading data (ARV) (1 messages)
- Posted by: gonzalad n
- Posted on: October 09 2006 09:54 EDT
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 !Threaded Messages (1)
- Re: JSF & datatable pagination : howto avoid data loading data ( by Rene Zanner on October 09 2006 10:14 EDT
-
Re: JSF & datatable pagination : howto avoid data loading data ([ Go to top ]
- Posted by: Rene Zanner
- Posted on: October 09 2006 10:14 EDT
- in response to gonzalad n
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é