Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

Re: T5: using the grid but not knowing the number of available rows

Andreas Andreou

2008-07-03

Replies: Find Java Web Hosting

Author LoginPost Reply
It's obvious that Martijn doesn't have control of the web service and
the guys providing it
don't offer such functionality (a getRecordsCount method for instance)
hence my suggestion...

Martijn, i think i've seen in this list ppl having implemented custom
Pagers... perhaps searching
the archives will show some suggestions

On Thu, Jul 3, 2008 at 11:40 PM, Thiago H. de Paula Figueiredo
<thiagohp@(protected):
> Em Thu, 03 Jul 2008 16:35:05 -0300, Martijn Brinkers (List)
> <martijn.list@(protected):
>
>> I know about GridDataSource and have implemented that already. The
>> problem I face is that I do not know how many rows the GridDataSource
>> will return. I only know if there is more data the moment I request the
>> data.
>>
>> Would it be possible to specify MAXINT rows, remove the pager and create
>> my own pager that only contains a previous and next link?
>
> My approach is this: in the int getAvailableRows() method, I perform a query
> that only returns the number of results, without returning actual data.
> Then, in the prepare() method, I fetch the data. From here, Grid takes care
> of the rest.
>
> Thiago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>



--
Andreas Andreou - andyhot@(protected)
Tapestry / Tacos developer
Open Source / JEE Consulting

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.