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: [email protected]
For additional commands, e-mail: [email protected]