On Fri, 26 Jan 2007, Carfield Yim wrote:
> I found a datetime picket with is more suitable for my application and
> I would like to integrate that javascript to my application.
> 
> I can get the markup id using getMarkId() method of Component. However
> I don't know how to press it to that javascript. I have talk of look

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.

> of http://www.mail-archive.com/[email protected]/msg22608.html
> and I wonder can I have similar ${backGroundElementId} at HTML
> template instead of js file?

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.

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

Reply via email to