I'm trying to open a modal window right after opening my WebPage. So in
the page constructor I have this code:
modalWindow.add(new
AbstractAjaxTimerBehavior(Duration.milliseconds(100)) {
@Override
protected void onTimer(AjaxRequestTarget target) {
stop();
modalWindow.show(target);
}
});
I add this behaviour to modalWindow because if I just add it to the
WebPage instance wicket doesn't add script to body's onload handler.
So then I see the following html source in the brower:
<body onload="setTimeout(\"var
wcall=wicketAjaxGet('?wicket:interface=:9:agreement-popup-window:-1:IUnversionedBehaviorListener:7&wicket:ignoreIfNotActive=true',
function() { }, function() { });\", 100);">
And it doesn't work because of invalid qoutes escaping (\"). How can I
avoid/fix it?
--
Andrew Klochkov
-------------------------------------------------------------------------
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