cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Navigation Handler does not work properly

mohammed_amr
Champ in-the-making
Champ in-the-making
Dear Gurus,

I'm facing the following problem:

I have a new start location value within the user profile page names "CS System", and i create a new user named "momo" and i try to login to the alfresco, the login working successfully, but when i try to logout, go to company home, go to user home or alfresco the navigation is not work and still i'm staying on the same page.

after activate debug mode i notice that every action i'm doing on the page either logout or other the value of AlfrescoNavigationHandler is still the same value and is

19:07:07,498 User:momo DEBUG [web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=null, outcome=cssystem)

where the value when i logged to the alfresco is
19:07:07,498 User:momo DEBUG [web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=#{LoginBean.login}, outcome=cssystem)

i cannot know exactly what the reason for this behavior. can anyone help me to pass out of there problem.

Technical Description:

- Goal: i need another start location

- Steps
* Override LoginBean To Support The new Start Location
* Override NavigationBean To Support New Start Location
* Override UserPreferencesBean To Support New Start Location
* Add New Navigation Rule
* Add Beans to the Faces-Config.xml

* logout as admin
* login as momo -> login success
* click logout as momo user -> alfresco page refreshed but the same page still displayed (container.jsp)
* click company_home as momo -> alfresco page refreshed but the same page still displayed (container.jsp)

can any one help me or guide me, what i need to do ? or is there anything missing in the extension

Thanks in advance
Mohammed Amr
Senior System Developer
Digital Series Co.
1 REPLY 1

romschn
Star Collaborator
Star Collaborator
Just a quick workaround comes to my mind which may help you solve your probelm at the quickest, which will require only a bit of a twicking by customizing Navigation Bean class.

To set the start location as a specific space as default for all the users apart from guest user, you can handle this with a bit of the customization as shown below.

1. Customize NavigationBean class.
2. In getToolbarLocation() method, add below entry, always return LOCATION_COMPANY.
    this.preferences.setStartLocation(NavigationBean.LOCATION_COMPANY);
    return NavigationBean.LOCATION_COMPANY;
   }
3. In ProcessToolbar method, instead of getting the node for company home, get the node for your default location and follow the remaining logic.

The above would be only advisable, if you have to always route the user to your specific space as a default location. And user would never require company home/myalfresco/guest home/user home as the default location.

Please check this should work absolutely fine.