Re: [Wicket-user] How to include a form field in the ajax request without form submit

2007-04-27 Thread wicket0123
Wasn't the initial question to get a form field's value w/o submitting the entire form? The goal was to get 1 field's value w/o submitting the entire form. ckuehne wrote: 2007/1/31, Marc-Andre Houle [EMAIL PROTECTED]: Why not simply use AjaxSubmitLink or AjaxSubmitButton ? It will submit

Re: [Wicket-user] How to include a form field in the ajax request without form submit

2007-04-27 Thread Igor Vaynberg
like i said, use formcomponentupdatingbehavior, it only sends over data for that one field. if you want to do stuff liek validate on the fly there is an example in wicket-examples under ajax/form what you do is add that formcomponentupdatingbehavior to onchange event of the textbox and throttle

Re: [Wicket-user] How to include a form field in the ajax request without form submit

2007-01-31 Thread Conny Kühne
Thanks for the quick response. Unfortunately I don't quite understand how to achieve the functionality with ajaxformcomponentupdatingbehavior. More precise, I don't know which event to attache to it. I don't want to call the availability check onBlur but only when the link is clicked.

Re: [Wicket-user] How to include a form field in the ajax request without form submit

2007-01-31 Thread Erik van Oosten
Hello Conny, You could use the 'onclick' event, however, you won't get the value of the text input. So, you probably need to submit the form. For this links are not intended, you need a submit buttons. With css you can style the button as a link again (if you really must :) ). Wicket won't

Re: [Wicket-user] How to include a form field in the ajax request without form submit

2007-01-31 Thread Marc-Andre Houle
Why not simply use AjaxSubmitLink or AjaxSubmitButton ? It will submit all the form, evidently, but you can do which ever action you want in the onClick handler? Am I missing something? Marc On 1/31/07, Erik van Oosten [EMAIL PROTECTED] wrote: Hello Conny, You could use the 'onclick' event,

Re: [Wicket-user] How to include a form field in the ajax request without form submit

2007-01-31 Thread Conny Kühne
2007/1/31, Marc-Andre Houle [EMAIL PROTECTED]: Why not simply use AjaxSubmitLink or AjaxSubmitButton ? It will submit all the form, evidently, but you can do which ever action you want in the onClick handler? That's exactly the conclusion I came up with after thinking a bit about the

[Wicket-user] How to include a form field in the ajax request without form submit

2007-01-30 Thread Conny Kühne
Hi, my scenario is as follows: I have a registration form (non ajax) and want to add a link that checks the availability of the username (i.e., if it has already been taken) via ajax. So I need a way to get the value of a form field without submitting the form. Ideally the value of the form

Re: [Wicket-user] How to include a form field in the ajax request without form submit

2007-01-30 Thread Igor Vaynberg
see ajaxformcomponentupdatingbehavior -igor On 1/30/07, Conny Kühne [EMAIL PROTECTED] wrote: Hi, my scenario is as follows: I have a registration form (non ajax) and want to add a link that checks the availability of the username (i.e., if it has already been taken) via ajax. So I need a