Create your own datamodel, which makes dataScroller think it has all the data ready, but will not load the data into memory...
 
regards
Alexander


From: Emmanuel Jay [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 18, 2006 9:13 AM
To: MyFaces Discussion
Subject: Re: dataScroller total page number (large data set)

Looking at the HtmlDataScroller code getPageCount assumes that the whole data model is loaded in memory to display the number of pages available.

Anybody knows a work around this that will allow the setting of the pageCount independently of whether the model is fully loaded or not...


On 1/17/06, Emmanuel Jay <[EMAIL PROTECTED]> wrote:
Hi all,

We are trying the use the dataScroller for a large data set (I have read the threads about that). Our business logic is all there but we can't figure out how to set the total number of pages on the dataScroller without loading the whole model.

Basically we just want to specify on the dataScroller that the total number of pages is X, and we want the user to be able to see that (then our logic handles the partial loading of the model)....

Any help is much appreciated,

Emmanuel

Reply via email to