On Fri, 26 Jan 2007, Carfield Yim wrote:
> Because that component will use mulitple time in same page, if I do so
> that the ID will be confilct each other
How do you use the JavaScript component in your own code? Is
this an example?
> <input type="text" wicket:id="date_textfield" id="date_textfield"
> size="15">
> <a href="javascript:NewCal('date_textfield','ddmmmyyyy',true,24)">
> <img src="images/cal.gif" width="16" height="16" border="0" />
> </a>
If you pass the element id to the JavaScript from your own
(JavaScript) code, I think you should be able to do something
like this
<input type="text" wicket:id="startDate" id="startDate" size="15">
<a href="javascript:NewCal('startDate','ddmmmyyyy',true,24)">
<img src="images/cal.gif" width="16" height="16" border="0" />
</a>
<input type="text" wicket:id="endDate" id="endDate" size="15">
<a href="javascript:NewCal('endDate','ddmmmyyyy',true,24)">
<img src="images/cal.gif" width="16" height="16" border="0" />
</a>
It might be I don't understand the issue correctly though.
--
Timo Rantalaiho
Reaktor Innovations Oy <URL: http://www.ri.fi/ >
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user