You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Scott Semyan (JIRA)" <be...@incubator.apache.org> on 2005/04/26 20:17:26 UTC
[jira] Created: (BEEHIVE-564) NavigateTo JPF action does not seem to work
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
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
[jira] Closed: (BEEHIVE-564) NavigateTo JPF action does not seem to work
Posted by "Julie Zhuo (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-564?page=all ]
Julie Zhuo closed BEEHIVE-564:
------------------------------
Verified at rev178545. The petstore code is updated and the successful login takes it to the checkout page rather the login page now.
> 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: Julie Zhuo
>
> 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
[jira] Assigned: (BEEHIVE-564) NavigateTo JPF action does not seem to work
Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-564?page=all ]
Rich Feit reassigned BEEHIVE-564:
---------------------------------
Assign To: Rich Feit
> 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
[jira] Resolved: (BEEHIVE-564) NavigateTo JPF action does not seem to work
Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
[ 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(
forwards={@Jpf.Forward(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
[jira] Commented: (BEEHIVE-564) NavigateTo JPF action does not seem to work
Posted by "Scott Semyan (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-564?page=comments#action_63815 ]
Scott Semyan commented on BEEHIVE-564:
--------------------------------------
As an additional comment, I found this by running the HTTPUnit tests for the PetStore app. To see this manually, build the PetStore app according to the README, then do the following:
1) Enter the store
2) Add something to your cart
3) Checkout
4) At this point it will make you sign in. Use beehive, beehive as user/pass.
5) After you sign in you SHOULD go back to the checkout, but instead it sends you back to the sign-in page.
> 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
>
> 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
[jira] Assigned: (BEEHIVE-564) NavigateTo JPF action does not seem to work
Posted by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-564?page=all ]
Alejandro Ramirez reassigned BEEHIVE-564:
-----------------------------------------
Assign To: Julie Zhuo (was: Rich Feit)
please verify
> 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: Julie Zhuo
>
> 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