Re: TextField submit via Ajax

2011-02-10 Thread Olivier Dutrieux
uot;); // < very importante return handler; } }); If that can help. Best regards - Duto -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TextField-submit-via-Ajax-tp3002094p3298872.html Sent from the Users forum mailing lis

Re: TextField submit via Ajax

2011-02-10 Thread Olivier Dutrieux
Hello, Just a question : why we can't add Behavior on onsubmit event on form to do that ? - Duto -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TextField-submit-via-Ajax-tp3002094p3298726.html Sent from the Users forum mailing list archive at Nabbl

Re: TextField submit via Ajax

2011-02-07 Thread msj121
tuğ Bilgin Altıntaş >> >> > 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") { >> >

Re: TextField submit via Ajax

2011-02-07 Thread jensiator
Thanks. I have been looking for this for s long. Thank again. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TextField-submit-via-Ajax-tp3002094p3264367.html Sent from the Users forum mailing list archive at Nabble.com

Re: TextField submit via Ajax

2010-10-20 Thread Altuğ Bilgin Altıntaş
Hi Martin; It works thanks; but my condition needs "onkeydown" anyway now i am posting the complete solution for others Code goal : user enters some char in textfield and press enter, and data comes via ajax. final TextField txtMy= new TextField("txtMy", new Model("")) ; txtMy.add(new AjaxFormC

Re: TextField submit via Ajax

2010-10-19 Thread Martin Grigorov
1. you need AjaxFormSubmitBehavior("onkeyup") 2. you'll have to add AjaxCallDecorator to it do fire only when the key is ENTER, i.e. event.keyCode === 13 2010/10/19 Altuğ Bilgin Altıntaş > Hi; > > How can i submit a form via Ajax when user hit the enter key on a TextField > ? > > I did below but

TextField submit via Ajax

2010-10-19 Thread Altuğ Bilgin Altıntaş
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) { //...