I want to just return to the same page when I get a success from login (this was easy to
as I just returned "null" from my login SessionController.login action
I want to go /mainmenu.xhtml from logout.
this was easy to as I just returned "mainMenu" from my login
SessionController.logout action (after invalidating the session).
What do you suggest given:
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE faces-config
| PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
| "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
|
| <faces-config>
|
| <!-- Navigation rules for the risingstars App -->
|
| <navigation-rule>
|
| <navigation-case>
| <from-outcome>mainMenu</from-outcome>
| <to-view-id>/mainmenu.xhtml</to-view-id>
| <redirect />
| </navigation-case>
|
| <navigation-case>
| <from-outcome>success</from-outcome>
| <to-view-id>/success.xhtml</to-view-id>
| <redirect />
| </navigation-case>
|
| <!-- Registration -->
| <navigation-case>
| <from-outcome>userRegisterDetails</from-outcome>
| <to-view-id>/userRegistration.xhtml</to-view-id>
| <redirect />
| </navigation-case>
|
| <navigation-case>
| <from-outcome>userCRUD</from-outcome>
| <to-view-id>/userCRUD.xhtml</to-view-id>
| <redirect />
| </navigation-case>
|
| <navigation-case>
| <from-outcome>organisationCRUD</from-outcome>
| <to-view-id>/organisationCRUD.xhtml</to-view-id>
| <redirect />
| </navigation-case>
|
| <navigation-case>
| <from-outcome>upload</from-outcome>
| <to-view-id>/upload.xhtml</to-view-id>
| <redirect />
| </navigation-case>
|
| <!-- Find Users (for RUD) -->
| <navigation-case>
| <from-outcome>findUser</from-outcome>
| <to-view-id>/userFind.xhtml</to-view-id>
| <redirect />
| </navigation-case>
|
| <!-- Find Organisation (for RUD) -->
| <navigation-case>
| <from-outcome>findOrganisation</from-outcome>
| <to-view-id>/organisationFind.xhtml</to-view-id>
| <redirect />
| </navigation-case>
|
| </navigation-rule>
|
|
|
| <navigation-rule>
|
| <from-view-id>/userCRUD.xhtml</from-view-id>
|
| <navigation-case>
| <from-outcome>userCRUDActionConfirm</from-outcome>
| <to-view-id>/userConfirm.xhtml</to-view-id>
| <redirect />
| </navigation-case>
|
| </navigation-rule>
|
|
|
| <navigation-rule>
|
| <from-view-id>/userFind.xhtml</from-view-id>
|
| <navigation-case>
| <from-outcome>userCRUD</from-outcome>
| <to-view-id>/userCRUD.xhtml</to-view-id>
| <redirect />
| </navigation-case>
|
| </navigation-rule>
|
|
|
| <navigation-rule>
|
| <from-view-id>/userConfirm.xhtml</from-view-id>
|
| <navigation-case>
| <from-outcome>userCRUD</from-outcome>
| <to-view-id>/userCRUD.xhtml</to-view-id>
| <redirect />
| </navigation-case>
|
| </navigation-rule>
|
|
| <navigation-rule>
|
| <from-view-id>/organisationCRUD.xhtml</from-view-id>
|
| <navigation-case>
| <from-outcome>organisationCRUDActionConfirm</from-outcome>
| <to-view-id>/organisationConfirm.xhtml</to-view-id>
| <redirect />
| </navigation-case>
|
| </navigation-rule>
|
|
|
| <navigation-rule>
|
| <from-view-id>/organisationFind.xhtml</from-view-id>
|
| <navigation-case>
| <from-outcome>organisationCRUD</from-outcome>
| <to-view-id>/organisationCRUD.xhtml</to-view-id>
| <redirect />
| </navigation-case>
|
| </navigation-rule>
|
|
|
| <navigation-rule>
|
| <from-view-id>/organisationConfirm.xhtml</from-view-id>
|
| <navigation-case>
| <from-outcome>organisationCRUD</from-outcome>
| <to-view-id>/organisationCRUD.xhtml</to-view-id>
| <redirect />
| </navigation-case>
|
| </navigation-rule>
|
|
| <managed-bean>
| <managed-bean-name>highlight</managed-bean-name>
|
<managed-bean-class>com.icesoft.faces.context.effects.Highlight</managed-bean-class>
| <managed-bean-scope>application</managed-bean-scope>
| </managed-bean>
|
| <application>
|
<view-handler>com.icesoft.faces.facelets.D2DSeamFaceletViewHandler</view-handler>
| </application>
|
| <!-- Select one of the standard transaction models for the Seam application
-->
|
| <lifecycle>
|
<phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
| </lifecycle>
|
| <!-- My Messages Please -->
| <application>
|
<message-bundle>nz.co.risingstars.i18n.jsfstandarderrors</message-bundle>
| </application>
|
| </faces-config>
|
and
| <!DOCTYPE pages PUBLIC
| "-//JBoss/Seam Pages Configuration DTD 1.1//EN"
| "http://jboss.com/products/seam/pages-1.1.dtd">
|
| <pages no-conversation-view-id="/mainmenu.xhtml">
|
| <page view-id="/userCRUD.xhtml" timeout="300000">
| Reason: #{cRUDUserController.mode} User ( #{user.username} )
| </page>
| <page view-id="/userConfirm.xhtml" timeout="300000">
| Reason: Confirm #{cRUDUserController.mode} User (
| #{user.username} )
| </page>
| <page view-id="/userRegistration.xhtml" timeout="300000">
| Reason: Registration of new User
| </page>
|
| <page view-id="*">
| <navigation from-action="#{identity.logout}">
| <redirect view-id="/mainpage.xhtml" />
| </navigation>
| </page>
|
| </pages>
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013363#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...