Well there is no official api call like "inspectOriginalDestination"
or something which will give you the original page / component.
With a little introspection you can get the original url from the
PageMap but that would be a bit hacky and might not give you enough
information.
Other options are:
- if the number of pages you want to prevent continuing to is limited,
is to do the check in those pages and if not allowed do a redirect.
- cache the destination pageclass in your session if an abortexception
is thrown and inspect that in the onsubmit.
Please file a jira request if you want this.
Maurice
On Wed, Apr 30, 2008 at 9:20 PM, Andrew Broderick
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> In the onSubmit() of my SignInPanel, I have the following:
>
> if (!continueToOriginalDestination())
> {
>
> setResponsePage(getApplication().getSessionSettings().getPageFactory().newPage(
> getApplication().getHomePage(),
> (PageParameters)null));
> }
>
> What I want to do is find out where the user is heading at this point, so I
> can conditionally either allow them to go there or send them to the home
> page. Note, this is not for authorization purposes; I just want to be able to
> control the page flow.
>
> Thanks
>
> ___
>
> The information in this email or in any file attached
> hereto is intended only for the personal and confiden-
> tial use of the individual or entity to which it is
> addressed and may contain information that is propri-
> etary and confidential. If you are not the intended
> recipient of this message you are hereby notified that
> any review, dissemination, distribution or copying of
> this message is strictly prohibited. This communica-
> tion is for information purposes only and should not
> be regarded as an offer to sell or as a solicitation
> of an offer to buy any financial product. Email trans-
> mission cannot be guaranteed to be secure or error-
> free. P6070214
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]