Thanks a lot for your answers, I will do that...

Emmanuel

On 1/18/06, Jesse Alexander (KBSA 21) < [EMAIL PROTECTED]> wrote:
And if you want a behaviour similar to Goolge... then you would not need
to
do a costly "select count(*)", you just would assume a value...

But basically getRowCount() makes thescroller think, the datamodel knows
the
amount of data...

hth
Alexander

-----Original Message-----
From: Bruno Aranda [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 18, 2006 11:29 AM
To: MyFaces Discussion
Subject: Re: dataScroller total page number (large data set)

You could implement a DataModel and in the "public int getRowCount()"
execute a sql to count(*) all the data.

Regards,

Bruno

2006/1/18, Emmanuel Jay < [EMAIL PROTECTED]>:
> How do you make the dataScroller "think" it has all the data ready?
>
> Thanks,
>
> Emmanuel
>
>
> On 1/18/06, Bruno Aranda < [EMAIL PROTECTED]> wrote:
> > You can also check this entry [1] in the wiki. It might help!
> >
> > Regards,
> >
> > Bruno
> >
> > [1] http://wiki.apache.org/myfaces/WorkingWithLargeTables
> >
> > 2006/1/18, Emmanuel Jay < [EMAIL PROTECTED]>:
> > > 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