optimzing pagination in JSF

hi,

i am using pagination in my application. But while i paginate it refresh the entire page insist of only datatable so that it take too much time for me to paginate. is there any way to optimize the pagination?

Regards,

Ananth.P

[256 byte] By [Ananth.duraia] at [2007-11-27 11:24:47]
# 1

It sounds like you want an AJAX solution. Take a look at one of the AJAX component libraries for JSF. Two that come to mind are ajax4jsf and RichFaces. I'm certain there are others.

RaymondDeCampoa at 2007-7-29 16:00:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Too much time? It sounds like that you're reloading the complete set of, say, 1000 records and displaying only 10 of them everytime. Is that true? If so, redesign your loading logic and/or make use of session scoped beans to store data in session.

BalusCa at 2007-7-29 16:00:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Hi,

i am loading some what 270 records at a time and showing 20 per page. but i am using almost 9 data tables(since my application demands 2 fixed columns in left side and rest of them should be scrollable similar like excel) and i do store data in session and it took almost 7 seconds to render that page. is there any way to optimize it ?

Regards,

A..

Ananth.duraia at 2007-7-29 16:00:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Ananth,

I do not have answer for your question. But I am really curious to know how you have implemented 'Freeze Panes' (excel like effect). Have you used two different dataTable or same? We have same kind of requirement.

Please advice.

eegaia at 2007-7-29 16:00:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

Take a look at Lilya Jsf Widgets and Ajax Capabilities at http://qlogic.ma/lilya

in the demo, you will find how to create datagrids with paging in minutes

loukiliScreena at 2007-7-29 16:00:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6

hi,

Sorry for the late reply. I did by using two datatables and <x:div> and control the scroler in javascript.

Regards,

A.

Ananth.duraia at 2007-7-29 16:00:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...