The thing is that my list isn't loaded once. It's loaded on every prepare as I retrieve it from the database. And the available rows count changes on every call as more items are available in the database. I solved this be modulating the provided index, in the getRowValue(int) method, by the available rows per page. I injected the grid component, got the rows per page from it and initialized by grid data source by providing my filtering criteria and the rows per page amount.
I'm basically browsing the database live. On Fri, Dec 14, 2012 at 10:21 AM, Lance Java <lance.j...@googlemail.com>wrote: > Take a look at the CollectionGridDataSource source code for inspiration: > > http://tapestry.apache.org/tapestry5/apidocs/src-html/org/apache/tapestry5/internal/grid/CollectionGridDataSource.html > > If you pass a collection to the Grid, tapestry will coerce it to a > CollectionGridDataSource > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/5-3-6-GridDataSource-provided-row-index-to-getRowValue-int-tp5718694p5718715.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >