[ http://issues.apache.org/jira/browse/BEEHIVE-564?page=all ]
Rich Feit resolved BEEHIVE-564:
-------------------------------
Resolution: Invalid
Hey Scott,
Your code was actually taking advantage of bug
http://issues.apache.org/jira/browse/BEEHIVE-552 (where shared flow actions
weren't counting as actions in the current page flow, which breaks any scenario
where the action that triggers NotLoggedInException is itself in the shared
flow). To fix this, you can replace your
webappRoot.SharedFlow.handleNotLoggedInException() with this one:
@Jpf.ExceptionHandler(
[EMAIL PROTECTED](name="auth", path="/auth/Controller.jpf")}
)
protected Forward handleNotLoggedInException(NotLoggedInException ex,
String actionName, String message, Object form) {
ReturnToForm initForm = new ReturnToForm(true);
return new Forward("auth", initForm);
}
That way, you're not going through a superfluous action to handle the exception.
> NavigateTo JPF action does not seem to work
> --------------------------------------------
>
> Key: BEEHIVE-564
> URL: http://issues.apache.org/jira/browse/BEEHIVE-564
> Project: Beehive
> Type: Bug
> Components: NetUI
> Versions: V1Beta
> Reporter: Scott Semyan
> Assignee: Rich Feit
>
> I have some code that requires a user to log in before checking out of the
> PetStore app. During the checkout, the user gets to a point where they must
> log in. After successfully logging in, they should
> return to the page that required the checkin. For some reason, this now does
> not work. The code in question is below. This was working fine last week.
> Have there been any changes to the NavigateTo.previousAction code?
>
> /**
> * after login, depending on what the user was doing, we may want to return
> * to current page or previous action
> */
> @Jpf.Action(
> forwards={
> @Jpf.Forward(name="previousAction",
> navigateTo=Jpf.NavigateTo.previousAction),
> @Jpf.Forward(name="currentPage",
> navigateTo=Jpf.NavigateTo.currentPage)
> }
> )
> public Forward loginDone(ReturnToForm initForm) {
> if (initForm.getReturnToPreviousAction())
> return new Forward("previousAction");
> else return new Forward("currentPage");
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira