Default faces navigation (redirect?)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2009 08:21 AM
Where I can find rule, which defines, where to go, when I'm not logged in? I mean these situations:
* You open localhost/alfresco and you are redirected to localhost/alfresco/faces/jsp/login.jsp
* You open localhost/alfresco/faces/jsp/something.jsp and you are redirected to localhost/alfresco/faces/jsp/login.jsp
* I want my own localhost/alfresco/faces/jsp/something.jsp page in there and I need to access that!
So there must be some default redirect, but where? I found some information on faces, searched through alfresco src for login.jsp (I'm expecting that this is defined inside web config as login page and accesed via clientConfig.getLoginPage()), but there is nothing :-(. Any ideas, please?
- Labels:
-
Archive

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2009 08:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2009 08:55 AM
redirect to page without login

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2009 04:29 AM
Then, check the rules about login and logout, and override them in faces-config-custom.xml
Hope this helps

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2009 07:29 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2009 07:33 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2009 07:38 AM
<navigation-rule> <from-view-id>/jsp/login.jsp</from-view-id> <navigation-case> <from-outcome>registerUser</from-outcome> <to-view-id>/jsp/register.jsp</to-view-id> </navigation-case> </navigation-rule> <navigation-rule> <from-view-id>/jsp/*</from-view-id> <navigation-case> <from-outcome>cancelRegister</from-outcome> <to-view-id>/jsp/login.jsp</to-view-id> </navigation-case> </navigation-rule> <navigation-rule> <from-view-id>/jsp/*</from-view-id> <navigation-case> <from-outcome>doRegister</from-outcome> <to-view-id>/jsp/login.jsp</to-view-id> </navigation-case> </navigation-rule>

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2009 07:41 AM
By the way, which file is it / where is it located etc … ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2009 07:48 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2009 07:56 AM
<faces-config><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-rule> <navigation-rule> <from-view-id>/jsp/extension/login.jsp</from-view-id> <navigation-case> <from-outcome>success</from-outcome> <to-view-id>/jsp/browse/browse.jsp</to-view-id> </navigation-case> </navigation-rule></faces-config>
I can tell you that I now have a custom login page, that I'll find in jsp/extension/login.jsp
Maybe your faces-config-ext.xml is loaded before faces-config-navigation.xml, that's why your custom rules are taken into account, but your overriding rules are not because they are loaded before basic navigation rules.
Try to put the overriding rules into faces-config-custom.xml
