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) > <[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] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
