Re: document onkeypress onkeydown

2010-02-04 Thread Stefan Fussenegger

Add a WebMarkupContainer to , i.e.

...

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



document onkeypress onkeydown

2010-02-04 Thread Gatos
  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");
  }
  });