I was checking this issue and it seems that "IComponent.getIdPath()" gives us a truly unique id, as long as all parent components have an assigned ID (not very sure about this last constraint, though). Is "compX.compY.compZ" a valid XML / HTML id ?

--
Ing. Leonardo Quijano Vincenzi
DTQ Software


Ron Piterman wrote:
Leonardo Quijano Vincenzi wrote:
I wonder if there is any supported property for a Tapestry component that gives unique Ids, for any kind of component, not only form ones?


the requestCycle has a method which generates a unique Id based on a key, so you can pass "input" and get back "input133" knowing in the same cycle no other component will get the same id.
i think getUniqueId(String), but am not sure.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  • Re: Unique Ids Leonardo Quijano Vincenzi

Reply via email to