You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Mihai Toma <mi...@asf.ro> on 2011/08/25 16:17:08 UTC
IAjaxIndicatorAware and history.back()
Hi,
I have a AjaxSubmitLink in a form with an AjaxFormSubmitIndicator behavior
(AjaxFormSubmitIndicator class extends AjaxFormSubmitBehavior and implements
IAjaxIndicatorAware, used to show a loading image while saving).
In the method onSubmit of my AjaxFormSubmitIndicator I save my data from
form and then I make a redirect to previews page using
target.appendJavascript("history.back()");
The problem Is that this did not work.
If I don't add AjaxFormSubmitIndicator on my submit button, the redirect
works fine.
Any idea on how can i make this working?
Thanks in advance!
Mihai
RE: IAjaxIndicatorAware and history.back()
Posted by Mihai Toma <mi...@asf.ro>.
I forgot to say that I use wicket 1.4.15.
-----Original Message-----
From: Mihai Toma [mailto:mihai.toma@asf.ro]
Sent: Thursday, August 25, 2011 5:17 PM
To: users@wicket.apache.org
Subject: IAjaxIndicatorAware and history.back()
Hi,
I have a AjaxSubmitLink in a form with an AjaxFormSubmitIndicator behavior
(AjaxFormSubmitIndicator class extends AjaxFormSubmitBehavior and implements
IAjaxIndicatorAware, used to show a loading image while saving).
In the method onSubmit of my AjaxFormSubmitIndicator I save my data from
form and then I make a redirect to previews page using
target.appendJavascript("history.back()");
The problem Is that this did not work.
If I don't add AjaxFormSubmitIndicator on my submit button, the redirect
works fine.
Any idea on how can i make this working?
Thanks in advance!
Mihai
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org