----- Original Message ----
From: Carfield Yim <[EMAIL PROTECTED]>
To: wicket-user@lists.sourceforge.net
Sent: Friday, January 26, 2007 12:01:05 PM
Subject: Re: [Wicket-user] How to set a markup ID of a HTML element to 
javascript

> 1) Why don't just just set the markup id in your markup?
>
>   <input id="timeField" wicket:id="startTime" ...
>
> Then you can access it normally with JavaScript. Wicket will
> honour HTML ids set in the HTML template.
>

Because that component will use mulitple time in same page, if I do so
that the ID will be confilct each other




Maybe something like: 

startTimeTextField.add(new SimpleAttributeModifier("id", 
"timeField"+customIndex));

from java could do the job






 
____________________________________________________________________________________
Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to