• 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: Nested Editing Contexts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nested Editing Contexts


  • Subject: Re: Nested Editing Contexts
  • From: Mike Schrag <email@hidden>
  • Date: Wed, 30 May 2007 22:26:42 -0400

Why can't some sort of architectural "checksum" be calculated on the nodes of the template object graph as the template is first built in the appendToResponse, stored in the WOContext for that page and compared against any subsequent rebuilding of the template, throwing an exception with a clear message when the two don't compare? The answer to this question is left as an exercise for the student, I'm up to my ears right now preparing for a roll-out.
While not fully addressing this issue, Wonder actually does have a cool feature where it computes hash codes for items in a WORepetition and modifies the element id to include this hash, which allows structural (i.e. positional) changes to the elements of the repetition while still allowing actions and bindings to direct to the correct item. For instance, if you are editing the first item in a repetition, and before you submit back a new "first item" gets inserted into the array, when you submit your form, it will properly update the correct EO rather than getting confused and trying to update (symbolically) "the first item" (which has now changed). It does seem like you could somehow come up with some equivalent trickery in computing a WOConditional's contribution to the element id ... There are probably some oddities in binding management to contend with, but I'm sure it could be done.

ms

_______________________________________________
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


  • Follow-Ups:
    • Re: Nested Editing Contexts
      • From: Mike Schrag <email@hidden>
References: 
 >Nested Editing Contexts (From: "Ted Archibald" <email@hidden>)
 >Re: Nested Editing Contexts (From: Steven Mark McCraw <email@hidden>)
 >Re: Nested Editing Contexts (From: Mike Schrag <email@hidden>)
 >Re: Nested Editing Contexts (From: Steven Mark McCraw <email@hidden>)
 >Re: Nested Editing Contexts (From: Chuck Hill <email@hidden>)
 >Re: Nested Editing Contexts (From: Steven Mark McCraw <email@hidden>)
 >Re: Nested Editing Contexts (From: Mike Schrag <email@hidden>)
 >Re: Nested Editing Contexts (From: "Jerry W. Walker" <email@hidden>)

  • Prev by Date: Re: Nested Editing Contexts
  • Next by Date: Re: Nested Editing Contexts
  • Previous by thread: Re: Nested Editing Contexts
  • Next by thread: Re: Nested Editing Contexts
  • Index(es):
    • Date
    • Thread