Em Thu, 03 Jul 2008 12:43:37 -0300, Martijn Brinkers (List)
<[EMAIL PROTECTED]> escreveu:
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]