• 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: Shortened autogenerated names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shortened autogenerated names


  • Subject: Re: Shortened autogenerated names
  • From: Mike Schrag <email@hidden>
  • Date: Wed, 09 Mar 2011 13:04:10 -0500

Why couldn't one use a randomly generated unique ID that is ten characters long (or so)? There *could* be name collision but the chances would be small. Alternatively, why not invent a "context sequence" that starts at 1 and counts up throughout the Request-Response loop? That would absolutely be unique.
I believe that is what they are ... a "context sequence" of sorts (^_^)  Specifically, they are derived from the context().elementID().  I think how this value is created is that the first number is the contextID, followed by a '.', then each element increments the element id, and each nesting adds a '.' separator character. However, my understanding of it is likely imperfect.
this is the default behavior, but it's not required .. for instance, ERXWORepetition uses the hashcode of each repetition item instead of the child element index.

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: Shortened autogenerated names
      • From: Anjo Krank <email@hidden>
References: 
 >Shortened autogenerated names (From: email@hidden)
 >Re: Shortened autogenerated names (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: Shortened autogenerated names
  • Next by Date: Re: Shortened autogenerated names
  • Previous by thread: Re: Shortened autogenerated names
  • Next by thread: Re: Shortened autogenerated names
  • Index(es):
    • Date
    • Thread