Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

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

Thiago H de Paula Figueiredo

2008-07-03

Replies: Find Java Web Hosting

Author LoginPost Reply
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)

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