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

Reply via email to