igor.vaynberg wrote: > > a less intrusive way would be to use an AjaxCallDecorator to wrap the > script > in the same way. > > -Igor >
I tried the AjaxCallDecorator approach, but it did not work. Fundamentally, it looks like the same code; so, what did I miss? protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() { public CharSequence decorateScript(CharSequence script) { final StringBuffer buff = new StringBuffer(); buff.append("var kc=wicketKeyCode(event); if (kc!=13) {"); buff.append(script); buff.append("} else {document.all."); buff.append(submit.getId()); buff.append(".click();}"); return buff; } }; } -- View this message in context: http://www.nabble.com/AJAX-Events---which-key--tf2338865.html#a6510086 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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