My solution is to AjaxFormValidatingBehavior on form :

I do that to intercept (by submit btn or ENTER key on every components form)
the submit form :

form.add(new AjaxFormValidatingBehavior(form, "onsubmit") {

            @Override
            protected CharSequence getEventHandler() {
                AppendingStringBuffer handler = new AppendingStringBuffer();
                handler.append(super.getEventHandler());
                handler.append("; return false;"); // <---- very importante
                return handler;
           }

        });

If that's can help.

Best regards 

-----
Duto
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Form-Enter-Key-Problem-tp1869795p3298877.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to