• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Raw Rows versus EOs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Raw Rows versus EOs (From: Colin Clark <email@hidden>)
 >Re: Raw Rows versus EOs (From: Chuck Hill <email@hidden>)
 >Re: Raw Rows versus EOs (From: Kieran Kelleher <email@hidden>)
 >Re: Raw Rows versus EOs (From: Robert Walker <email@hidden>)

  • Prev by Date: Re: Dynamic WO Comp. To Output Static HTML Page - How?
  • Next by Date: RE: Raw Rows versus EOs
  • Previous by thread: Re: Raw Rows versus EOs
  • Next by thread: RE: Raw Rows versus EOs
  • Index(es):
    • Date
    • Thread