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
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
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") {
>> >
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
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
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
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) {
//...