AnsweredAssumed Answered

changing the logout outcome

Question asked by tfaudot on Aug 5, 2008
Hello,

I would like to display the "guest home" after clicking on logout instead of going to the login screen.
I made some changes in the faces-config-navigation.xml but I get an error each time I try to redirect to the browse.jsp page after a logout.

javax.faces.FacesException: Cannot get value for expression '#{NavigationBean.toolbarLocation}'
caused by:
org.apache.jasper.JasperException: Cannot get value for expression '#{NavigationBean.toolbarLocation}'
caused by:
javax.faces.el.EvaluationException: Cannot get value for expression '#{NavigationBean.toolbarLocation}'
caused by:
javax.faces.el.EvaluationException: Exception getting value of property toolbarLocation of base of type : org.alfresco.web.bean.NavigationBean
caused by:
javax.faces.el.EvaluationException: Bean: org.alfresco.web.bean.NavigationBean, property: toolbarLocation
caused by:
java.lang.reflect.InvocationTargetException
caused by:
java.lang.NullPointerException

Here's what I did:
<!– 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>
         [b]<to-view-id>/jsp/browse/browse.jsp</to-view-id>[/b]
      </navigation-case>
      <navigation-case>
         <from-outcome>relogin</from-outcome>
         <to-view-id>/jsp/relogin.jsp</to-view-id>
      </navigation-case>
   </navigation-rule>


I'm new to JSF so I think I didn't get it well, please forgive me for that…

Any suggestions?
Thanks!

Outcomes