Re: Shortened autogenerated names
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