Re: Raw Rows versus EOs
Re: Raw Rows versus EOs
- Subject: Re: Raw Rows versus EOs
- From: Anjo Krank <email@hidden>
- Date: Thu, 3 Feb 2005 11:14:17 +0100
Am 02.02.2005 um 23:17 schrieb Robert Walker:
There's another issue to consider when using WODisplayGroup having to
do with backtracking. Try this on a display group managing batches:
1. Navigate forward a few pages.
2. Hit the browser's back button.
3. Perform an action (such as edit) an any displayed row.
You will notice that the wrong EO is selected for the action.
I don't know if this is really a bug in WODisplayGroup, or if there is
simply no way to avoid this problem via HTTP requests and
backtracking.
A probably useful fix for this would be to subclass WORepetition and
instead of adding .<iteration> (eg. .0, .1 etc) to the elementID add
.<elementID>/<System.identityHashCode(currentObject)> (eg. .0/-266637,
.1/2039933 etc.) Then, when invoking the action you could check if the
identityHashCode is still the same and if not, either raise an
exception complaining about backtracking (caught by the parent and
display a reasonable error message) or find the matching object and
invoke the action there.
Cheers, Anjo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden