> 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
> 2) I don't think so, but you can certainly use a Wicket
> component to output it if you like:
>
> <div id="myIdContainer" wicket:id="timeFieldId" style="visibility:
> hidden"></div>
>
> new Label(parent, "timeFieldId", timeField.getMarkupId());
>
> or something such. Normally 1) is more straight forward
> though.
I don't know how to use that. The HTML like
<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>
But doing that is not ok, as date_textfield will duplication with same component
-------------------------------------------------------------------------
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