AjaxEventBehavior that catch only some keypresses

2013-01-23 Thread Malte
Hi! I want write an AjaxEventBehavior that calls the server if an function key is pressed. Im also need to know on serverside which key is pressed. I'd tried it with this code: public HomePage(final PageParameters parameters) { super(parameters); add(new AjaxEventBehavior(keydown){

Re: AjaxEventBehavior that catch only some keypresses

2013-01-23 Thread Sven Meier
attributes.allowDefault(true) Sven On 01/23/2013 09:41 PM, Malte wrote: Hi! I want write an AjaxEventBehavior that calls the server if an function key is pressed. Im also need to know on serverside which key is pressed. I'd tried it with this code: public HomePage(final PageParameters