you would create one that would write out some html like <html><head><script>history.go(-2);</script></head><body/></html>
-igor On Wed, Sep 1, 2010 at 4:26 PM, Chris Colman <chr...@stepaheadsoftware.com> wrote: > I have a form/page that can be invoked from different pages so I can't > easily specify which page should be returned to after submit. > > Given that the simple javascript code: > > history.go(-1) > > takes the user 'back' to the previous page I was wondering if I could > somehow set up an IRequestTarget that would execute that javascript > after the form is successfully submitted. > > Eg., > > public void onSubmit() > { > IRequestTarget rt = new <some appropriate IRequestTarget class> > rt.<add the javascript code> > getRequestCycle().setRequestTarget(rt); > } > > Which IRequestTarget implementation class would I use for that, if any? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org