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.
Brice
On 6/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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
