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 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)

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