[ 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
