You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by ronaldlee <yi...@hotmail.com> on 2007/12/03 19:31:55 UTC
T5: Grid queries partial data
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
--
View this message in context: http://www.nabble.com/T5%3A-Grid-queries-partial-data-tf4938419.html#a14135667
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: Grid queries partial data
Posted by Andy Huhn <am...@insightbb.com>.
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: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: Grid queries partial data
Posted by ronaldlee <yi...@hotmail.com>.
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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: Grid queries partial data
Posted by Michael Courcy <mi...@gmail.com>.
Very interesting thank you
Sven Homburg a écrit :
> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Michael Courcy
http://courcy.blogspot.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: Grid queries partial data
Posted by Sven Homburg <Sv...@hsofttec.com>.
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org