Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

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

Martijn Brinkers

2008-07-03

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

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?

Martijn

On Thu, 2008-07-03 at 14:58 -0300, Thiago H. de Paula Figueiredo wrote:
> Em Thu, 03 Jul 2008 12:43:37 -0300, Martijn Brinkers (List)
> <martijn.list@(protected):
>
> > I have a 'query' (not a database query but a webservice query) that
> > possibly returns a huge number of 'records'. The query allows me to
> > specify the start index and the max records to return so I can use this
> > to only query the records shown in one grid page.
>
> Implement the GridDataSource interface
> (http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/grid/GridDataSource.html)
> and pass it to the Grid's source parameter. It has a method, void
> prepare(int startIndex, int endIndex, List<SortConstraint>
> sortConstraints), that is exactly what you're looking for.
>
> Thiago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>


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

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