Message Boards
Threads [ Previous | Next ]
Pagination strange behaviour
Pagination strange behaviour Craig Yandow 1/8/09 3:15 PM
RE: Pagination strange behaviour Ginni Machamer 1/13/09 1:11 PM
RE: Pagination strange behaviour Craig Yandow 1/14/09 6:23 PM
Pagination strange behaviour
1/8/09 3:15 PM
I have a jsp that uses pagination to display the results of a user filter operation {select records that match criteria}
Say the first time that 100 records are found and that the user pages down to the 3rd page of results (20 per page)

Then the user enters a different set of filter criteria and gets only 3 records.

When the results are displayed, the count is correct, but there are no records shown...

It says: "Here are 3 to 3 of 3 Sponsors"

BUT, If the user then selects the first page using the pagination controls the 3 records are shown.

Then it says: "Here are 1 to 3 of 3 Sponsors"


It appears that pagination does not completely start over when a new collection is passed to it.

I've tried a few work arounds and for now, I'll just tell my users to click on first if the results are not shown.
RE: Pagination strange behaviour
1/13/09 1:11 PM as a reply to Craig Yandow.
Craig,

How are you handling the instantiation variables? It sounds like you are not resetting your results collection/counter variables if a new query is executed.

G
RE: Pagination strange behaviour
1/14/09 6:23 PM as a reply to Ginni Machamer.
Ginni Machamer:
Craig,

How are you handling the instantiation variables? It sounds like you are not resetting your results collection/counter variables if a new query is executed.

G

Yeah, That was my first thought too. I think, I tested resetting them before posting this, but it's hard to be positive and it's been a few days.
C
© Copyright 2001-2010 Skyway Software Inc. All Rights Reserved