Ronald, This is a bug in the Grid implementation. See
http://issues.apache.org/jira/browse/TAPESTRY-1901 Thanks, Andy On Mon, 2007-12-03 at 15:09 -0800, ronaldlee wrote: > Thanks! > > I can get it to work, kind of. > > I am encountering a situation where in the "prepare" function, the > "startIndex" is greater than the "endIndex"... the way I get that is first > get to the second page of the data (by clicking page "2"), then do a new > search to query new data, and for some reason the "startIndex" still return > me the previous index (the first index of the second page"), and since my > second query returns number of entries less than the "startIndex" and > therefore it happens (startIndex > endIndex).. It may have something to do > with the way I persist certain things.. need to investigate more. > > Ronald > > > Sven Homburg wrote: > > > > have a look for a simple hibernated grid datasource > > > > http://wiki.apache.org/tapestry/Tapestry5HibernateGridDatasource > > > > best regards > > > > S.Homburg > > > > > > > > > > ronaldlee schrieb: > >> Hi, > >> > >> Does anyone know how to implement a Grid data source, or thru other ways, > >> such that it will only query partial data from the database, depending on > >> the page link user click on the Grid, and the "rowsPerPage" value set for > >> the Grid? I just don't want to retrieve the whole list if I only need to > >> display part of it. > >> > >> thx! > >> Ronald > >> > > > > --------------------------------------------------------------------- > > 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]
