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

-- 
View this message in context: 
http://www.nabble.com/T5%3A-Grid-queries-partial-data-tf4938419.html#a14140390
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to