Re: Handling form ajax submit on enter key in form field

2011-11-02 Thread Bas Gooren
Cool, thanks! How about browser support for this? We've tested with current Firefox and Chrome releases and it works like a charm. But how about IE < 9 ? Op 2-11-2011 12:33, schreef Martin Grigorov: On Wed, Nov 2, 2011 at 1:29 PM, Bas Gooren wrote: Hi, Yes we currently do form.add( new Aj

Re: Handling form ajax submit on enter key in form field

2011-11-02 Thread Martin Grigorov
On Wed, Nov 2, 2011 at 1:29 PM, Bas Gooren wrote: > Hi, > > Yes we currently do > > form.add( new AjaxFormSubmitBehavior(form, "onsubmit")); > > I've been testing what you describe (enter keys calls submit button), and > this works. > 99% of the time we only have one submit button, so that's good

Re: Handling form ajax submit on enter key in form field

2011-11-02 Thread Bas Gooren
Hi, Yes we currently do form.add( new AjaxFormSubmitBehavior(form, "onsubmit")); I've been testing what you describe (enter keys calls submit button), and this works. 99% of the time we only have one submit button, so that's good enough for us. Thanks! Op 1-11-2011 23:54, schreef Andrea De

Re: Handling form ajax submit on enter key in form field

2011-11-01 Thread Andrea Del Bene
Hi, if your form has just one submitting button, pressing enter key on a field should submit it by default. Anyway, I would solve this problem using a JavaScript library like JQuery rather then using a Wicket Ajax behavior. Can you give us more details about your AjaxFormSubmitBehavior? Are y

Handling form ajax submit on enter key in form field

2011-11-01 Thread Bas Gooren
Hi all, To handle the case where somebody hits enter in a form field which has an (Ajax)Button to submit the entire form by ajax, we used an AjaxFormSubmitBehavior attached to the form's onsubmit in wicket 1.4.x After upgrading to 1.5 our ajax indicator was not hidden after the ajax request,