This works fine if I trap the "keyup" event instead of the "keypress" event.
>-----Original Message----- >From: Chris Colman [mailto:chr...@stepaheadsoftware.com] >Sent: Sunday, 2 December 2012 11:25 AM >To: users@wicket.apache.org >Subject: How to continue to process event after trapping with >AjaxEventBehavior > >We're trapping key presses on a TextField like: > > textField.add(new AjaxEventBehavior("keypress") > { > private int count = 0; > > protected void >onEvent(AjaxRequestTarget target) > { > //To change body of >implemented methods use File | Settings | File Templates. > System.out.println("An >keypress occurred " + count++); > } > }); > > >The onEvent method is getting called for every keystroke but the event >is being eaten up by the behavior and no characters appear in the >TextField. > >Is there a method that onEvent can call to continue normal processing of >the event so that characters don't get eaten up? > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org