You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Julie Zhuo (JIRA)" <be...@incubator.apache.org> on 2005/05/26 21:30:56 UTC

[jira] Closed: (BEEHIVE-564) NavigateTo JPF action does not seem to work

     [ 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