Component c=...
String javascript="calendar blah=new calendar(`"+c.getmarkupid()+"'`);...")

new label("script", javascript).setescapemodelstrings(false);
<script wicket:id="script"></script>

is the easiest way for very simple javascript stings

there is also PackagedTextTemplate for more complex stings that require
variable replacement, as well as CssTemplate and JavasScriptTemplate. have a
look.

-igor


On 1/26/07, Carfield Yim <[EMAIL PROTECTED]> 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
of
http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg22608.html
and I wonder can I have similar ${backGroundElementId} at HTML
template instead of js file?

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

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