You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shale.apache.org by Gary VanMatre <gv...@comcast.net> on 2007/03/05 16:36:02 UTC
Re: [shale-validator] view controller site navigation
>From: gerrit gerrit.scholz@deborate.de
>
>This is the way I tried, but it works not for me.
>
>Init-method
>FacesContext facesContext = FacesContext.getCurrentInstance();
>NavigationHandler navigationHandler =
>facesContext.getApplication().getNavigationHandler();
> navigationHandler.handleNavigation(facesContext,
>"#{projekteFace.fake}","successAufgaben");
> facesContext.renderResponse();
>
>faces-config.xml:
>
><navigation-rule>
> <from-view-id>/faces/projekte.jsp</from-view-id>
> <navigation-case>
> <from-outcome>successAufgaben</from-outcome>
Try making your play after adding a "from-action" to your config.
<from-action>#{projekteFace.fake}</from-action>
Or, you could try passing "null" as the from action.
facesContext.getApplication().getNavigationHandler();
navigationHandler.handleNavigation(facesContext,
null,"successAufgaben");
> <to-view-id>/faces/aufgaben.jsp</to-view-id>
> </navigation-case>
> </navigation-rule>
>
>The current page is projekte.jsp. My assumption was that after
>renderResponce is executed the navigation rule is takes from the
>faces-config.xml. After that aufgaben.jsp should be shown and not
>projekte.jsp.
>
Gary