Hi;

How can i submit a form via Ajax when user hit the enter key on a TextField
?

I did below but it doesn't work.

myTextField.add(new AjaxFormComponentUpdatingBehavior("onsubmit") {
            @Override
            protected void onUpdate(AjaxRequestTarget target) {
               //...

            }

 });

Thanks.

Reply via email to