Hi!!

As mentioned above, I tried using id="${}" instead of t:id, but the function 
getElementbyId() returns element based on t:id and not id which I tried and 
experimented with for quite some time now. And sadly, t:id soesn't accept ${} 
types of values, it needs to be hardcoded. 


Warm Regards,

Ashutosh Soman           

ODC-AWL | Vikhroli, Mumbai | : soman.ashut...@atosorigin.com |  :+91 22 6733 
3729  | :(M): +91 9769058194
     


-----Original Message-----
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] 
Sent: Thursday, July 21, 2011 7:14 PM
To: users@tapestry.apache.org; Ashutosh, Soman
Subject: Re: Loop and javascript

On Thu, 21 Jul 2011 04:31:43 -0300, ashu.soman <soman.ashut...@atos.net>  
wrote:

> Hi,

Hi!

> I need to use javascript in a loop which uses t:id of an element(a radio
> button). The javascript in an onclick event on another element(an image).
> But since tapestry is not allowing me to put t:id in t:id="${}" this
> fashion, i'm facing problem.

t:id is the Tapestry component instance id in the template. Tapestry pages  
and components have strictly static structure and very dynamic behavior.

What you need to do is using id="${}", not t:id.

-- 
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



This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos group liability cannot be triggered for the 
message content. Although the sender endeavors to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to