You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Juri Prokofiev <ju...@unix.ee> on 2009/06/09 15:39:32 UTC
submit a form using ajax
I'm trying to save form values every 30 seconds and for this purpose
I use AbstractAjaxTimerBehavior class, but can't figure out how to
get the form values if submit button wasn't pressed?
Thank you
--
http://www.autoladu.ee - kõik varuosad ühes kohas
RE: submit a form using ajax
Posted by Russell Simpkins <ru...@hotmail.com>.
I haven't done this, but if I were trying to post every 30 seconds, i would use the setInterval ( expression, interval ) function. One way to add javascript in your form is to implement: protected IAjaxCallDecorator getAjaxCallDecorator(). I think the suggestion was to look at the code in ajaxsubmitlink to learn how wicket submits the form.
----------------------------------------
> Date: Mon, 10 Aug 2009 20:50:24 -0700
> From: koki142@gmail.com
> To: users@wicket.apache.org
> Subject: Re: submit a form using ajax
>
>
> Any luck with this one?
> I can't figure out how to do it...
>
>
> igor.vaynberg wrote:
>>
>> you have to wire a bit of javascript to do this from the timer, see
>> how ajaxsubmitlink does it...
>>
>> -igor
>>
>> On Tue, Jun 9, 2009 at 6:39 AM, Juri Prokofiev wrote:
>>> I'm trying to save form values every 30 seconds and for this purpose
>>> I use AbstractAjaxTimerBehavior class, but can't figure out how to
>>> get the form values if submit button wasn't pressed?
>>>
>>> Thank you
>>> --
>>> http://www.autoladu.ee - kõik varuosad ühes kohas
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/submit-a-form-using-ajax-tp23943077p24911252.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
_________________________________________________________________
Get your vacation photos on your phone!
http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: submit a form using ajax
Posted by Toscano <ko...@gmail.com>.
Any luck with this one?
I can't figure out how to do it...
igor.vaynberg wrote:
>
> you have to wire a bit of javascript to do this from the timer, see
> how ajaxsubmitlink does it...
>
> -igor
>
> On Tue, Jun 9, 2009 at 6:39 AM, Juri Prokofiev<ju...@unix.ee> wrote:
>> I'm trying to save form values every 30 seconds and for this purpose
>> I use AbstractAjaxTimerBehavior class, but can't figure out how to
>> get the form values if submit button wasn't pressed?
>>
>> Thank you
>> --
>> http://www.autoladu.ee - kõik varuosad ühes kohas
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/submit-a-form-using-ajax-tp23943077p24911252.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: submit a form using ajax
Posted by Igor Vaynberg <ig...@gmail.com>.
you have to wire a bit of javascript to do this from the timer, see
how ajaxsubmitlink does it...
-igor
On Tue, Jun 9, 2009 at 6:39 AM, Juri Prokofiev<ju...@unix.ee> wrote:
> I'm trying to save form values every 30 seconds and for this purpose
> I use AbstractAjaxTimerBehavior class, but can't figure out how to
> get the form values if submit button wasn't pressed?
>
> Thank you
> --
> http://www.autoladu.ee - kõik varuosad ühes kohas
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: submit a form using ajax
Posted by Toscano <ko...@gmail.com>.
Hi,
Finally I found a solution that works for me, just in case it is good for
someone else:
I added an AjaxFormComponentUpdatingBehavior "onkeyup" to all the fields in
the form (actually just two), and I added an AbstractAjaxTimerBehavior to
the page which will look for changes in the values and autosave them.
Thank you all,
Oskar
bferr wrote:
>
> Could you try using an OnChangeAjaxBehavior with a setThrottleDelay().
>
>
>
> Juri Prokofiev-2 wrote:
>>
>> I'm trying to save form values every 30 seconds and for this purpose
>> I use AbstractAjaxTimerBehavior class, but can't figure out how to
>> get the form values if submit button wasn't pressed?
>>
>> Thank you
>> --
>> http://www.autoladu.ee - kõik varuosad ühes kohas
>>
>>
>
>
--
View this message in context: http://www.nabble.com/submit-a-form-using-ajax-tp23943077p24928725.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: submit a form using ajax
Posted by bferr <bf...@juno.com>.
Could you try using an OnChangeAjaxBehavior with a setThrottleDelay().
Juri Prokofiev-2 wrote:
>
> I'm trying to save form values every 30 seconds and for this purpose
> I use AbstractAjaxTimerBehavior class, but can't figure out how to
> get the form values if submit button wasn't pressed?
>
> Thank you
> --
> http://www.autoladu.ee - kõik varuosad ühes kohas
>
>
--
View this message in context: http://www.nabble.com/submit-a-form-using-ajax-tp23943077p24922311.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: submit a form using ajax
Posted by Craig McIlwee <cr...@openroadsconsulting.com>.
An AjaxFormChoiceComponentUpdatingBehavior or AjaxFormComponentUpdatingBehavior attached to the 'onchange' event will send the values back to the server as they are updated.
Craig
-----Original Message-----
From: projuri@gmail.com [mailto:projuri@gmail.com] On Behalf Of Juri Prokofiev
Sent: Tuesday, June 09, 2009 9:40 AM
To: users@wicket.apache.org
Subject: submit a form using ajax
I'm trying to save form values every 30 seconds and for this purpose
I use AbstractAjaxTimerBehavior class, but can't figure out how to
get the form values if submit button wasn't pressed?
Thank you
--
http://www.autoladu.ee - kõik varuosad ühes kohas
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org