You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by binu <p_...@yahoo.com> on 2005/12/16 09:49:36 UTC

How to send in info to the page on clicking a link

Hi,
I have a set of links dynamically generated.
I want to know how i can associate a unique id with it. A single listener 
should handle events for all the links dynamically generated.
The listener should handle the events accroding to the id of the link clicked.

Thanks & Regards 
Binu



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


Re: How to send in info to the page on clicking a link

Posted by anil udasi <an...@yahoo.com>.
Hi, 
Create a hidden Id element & onclick of Link update
this element with the selected Id & submit the page.

For example :
 <input jwcid="@Hidden" value="ognl:selectedId"   
id="selectedId"/>

 function setId(val)
 {
   document.getElementById('selectedId').value=val; 
 } 

<a onclick ="ognl:'setId('+Id+')'"....


Hope this helps
Anil Udasi.







--- binu <p_...@yahoo.com> wrote:

> Hi,
> I have a set of links dynamically generated.
> I want to know how i can associate a unique id with
> it. A single listener 
> should handle events for all the links dynamically
> generated.
> The listener should handle the events accroding to
> the id of the link clicked.
> 
> Thanks & Regards 
> Binu
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-dev-help@jakarta.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org