I think using the PageRenderSupport object should do the job:
PageRenderSupport pageRenderSupport =
TapestryUtils.getPageRenderSupport(requestCycle, pageOrComponent);
String uniqueId = pageRenderSupport.getUniqueString("someName");
Raphael Jean
EntropySoft
> -----Original Message-----
> From: Michael Becke [mailto:[EMAIL PROTECTED]
> Sent: mercredi 22 mars 2006 22:03
> To: [email protected]
> Subject: How to generate unique IDs
>
> Hello,
>
> I am using Tapestry 4.0 to build Jetspeed portlets and am wondering
> what is the best way to generate a unique ID for a portlet generated
> HTML entity. For example I have a portlet that renders an <img/>
> element that I would like to be able to access it via Javascript. How
> can I build a page unique ID for this img element?
>
> Thanks,
>
> Mike
>
> ---------------------------------------------------------------------
> 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]