On Thu, 24 May 2012 14:40:08 -0300, iberck <ibe...@gmail.com> wrote:
Thank you for your responses !
I'm sorry my problem is not properly explained, I wan to generate unique
ids when I have nested components for example:
Just use JavaScriptSupport.allocateClientId() in Component2 to generate
the client-side id.
resources.getId() does *not* returns a value which is a page-global unique
id. It returns the local (to the template at which it was declared) id.
The JavaDoc for it says that:
/**
* Returns the simple (or local) id of the component. The id will be
unique within the component's immediate
* container. For a page's root component, the value null is returned.
*/
String getId();
ComponentResources(Common).getNestedId() or getCompleteId() seems to be
what you're looking for.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org