On 28 Jun 2007, at 22:31, Miguel Arroz wrote:

The pager kicks ass, as it handles huge amount of data, using the objectInRange stuff in Wonder to limit the resources usage. Everything works like a charm. Except... when the user clicks the evil back button.

There, two things happen: first, the objects shown on the screen are not the objects where actions will apply if you choose an action on a displayed object (the same problem descibred here - <http://groups.google.com/group/wotips/browse_thread/thread/ 7fd37a82e5175537/17cef74b566fadd7#17cef74b566fadd7>). Second, if you click on any link in the Pager (the Pager looks like "1 2 ... 56 57 58 59 ... 567 568"), the page where you'll end does not match the link you clicked, because the link targets have changed.

The problem is that the Pager is a stateful component, and everytime you change the page, the same components are reused (return null). So, when you click "back", what you see is NOT what you get.

Now... how do I solve this (in an elegant way, of course)? I think the best solution is, somehow, keeping the state (or part of it) of the component for all the pages. That way, when the user backtracks, and clicks on something in the pager, I would be able to go to the right state, and work from there.

Is this a situation that won't be resolved by response ().disableClientCaching()?

Paul

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to