JSF & datatable pagination : howto avoid data loading data (ARV)

Discussions

Web tier: servlets, JSP, Web frameworks: JSF & datatable pagination : howto avoid data loading data (ARV)

  1. 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 !
  2. 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é