ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brice Ruth <bdr...@gmail.com>
Subject Re: PaginatedList question
Date Mon, 27 Jun 2005 16:34:46 GMT
I can't answer your question directly, but what I've done (and seen posted 
here previously) is to use a second 'count' query that you can then use to 
calculate your total pages. I haven't seen anything else that works well in 
all situations and doesn't suffer from horrible inefficiency.

 On 6/27/05, ibatis@aladin.ca <ibatis@aladin.ca> wrote: 
> Hello,
> I seem to be having some problem with the PaginatedList.
> When I'm on the first page and I do paginatedList.getPreviousPage(),
> iBatis doesn't wrap to the last page... as specified in the javadoc. I
> need this wrapping functionality to compute the total number of pages in
> the result set.
> Does anyone have any idea as to why this might be happening?
> I am using postgres with jdb3.
> Thanks.
> Aladin

Brice Ruth
Software Engineer, Madison WI

View raw message