<!– *************************************************************** –> <!– Empty JSF config file to prevent errors being thrown during JSF –> <!– initialisation. Overwrite this file with your custom version. –> <!– *************************************************************** –> <navigation-rule> <description> The decision rule used by the NavigationHandler to determine which view must be displayed after the current view, login.jsp is processed. </description> <from-view-id>/jsp/extension/login.jsp</from-view-id> <navigation-case> <description> Indicates to the NavigationHandler that the browse.jsp view must be displayed if the Action referenced by a UICommand component on the login.jsp view returns the outcome "success". </description> <from-outcome>success</from-outcome> <to-view-id>/jsp/browse/browse.jsp</to-view-id> </navigation-case> </navigation-rule>
<!– rule to get back to the login page from anywhere –> <navigation-rule> <from-view-id>/jsp/*</from-view-id> <navigation-case> <from-outcome>logout</from-outcome> <to-view-id>/jsp/extension/login.jsp</to-view-id> </navigation-case> <navigation-case> <from-outcome>relogin</from-outcome> <to-view-id>/jsp/extension/relogin.jsp</to-view-id> </navigation-case> </navigation-rule> <!– DOCUMENT DETAILS –> <navigation-rule> <from-view-id>/jsp/*</from-view-id> <navigation-case> <from-outcome>showDocDetails</from-outcome> <to-view-id>/jsp/extension/document-details.jsp</to-view-id> </navigation-case> </navigation-rule> <managed-bean> <description> The bean that backs up the Login screen </description> <managed-bean-name>LoginBean</managed-bean-name> <managed-bean-class>com.policefederale.web.login.xCustomLoginBean</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> <managed-property> <property-name>nodeService</property-name> <value>#{NodeService}</value> </managed-property> <managed-property> <property-name>authenticationService</property-name> <value>#{AuthenticationService}</value> </managed-property> <managed-property> <property-name>personService</property-name> <value>#{PersonService}</value> </managed-property> <managed-property> <property-name>navigator</property-name> <value>#{NavigationBean}</value> </managed-property> <managed-property> <property-name>browseBean</property-name> <value>#{BrowseBean}</value> </managed-property> <managed-property> <property-name>userPreferencesBean</property-name> <value>#{UserPreferencesBean}</value> </managed-property> </managed-bean> </faces-config>
For login page it does work but not for the "document-details.jsp".
So, you have changed OOTB faces-config.xml to replace all the login.jsp entries with extension\login.jsp right? Configurations looks just fine. Must be missing something. Also make sure u are returning proper outcome message from your custom login bean.