Add a WebMarkupContainer to <body>, i.e. <body wicket:id="body">...</body>
add(new WebMarkupContainer("body") .add(new AjaxEventBehavior("onkeypress"){ protected void onEvent(final AjaxRequestTarget target) { LOG.debug("keypress"); } })); Gatos wrote:
Hello, How is it possible to add event behavior for the document? I tried this one, but it didn't work: add(new AjaxEventBehavior("onkeypress"){ @Override protected void onEvent(final AjaxRequestTarget target) { LOG.debug("keypress"); } });
-- Stefan Fußenegger Molindo GmbH http://techblog.molindo.at/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org