cancel
Showing results for 
Search instead for 
Did you mean: 

[Solved] About custom login page wiki tuto (logout problem)

zomurn
Champ in-the-making
Champ in-the-making
Hello,

I've done the "custom login page" step by step tutorial on the wiki. It works well (I was able to put my logo).
BUT
The problem is that when I do disconnect, it is not anymore my custom login page which is called, but the original alfresco login page … why ?
How to always get back to my custom login page ?

Thanks
2 REPLIES 2

zomurn
Champ in-the-making
Champ in-the-making
Hi,

I found the problem.
In fact I overloaded the faces-config.xml with my faces-config-custom.xml
and on logout action, it is then the existing faces-config-navigation witch is take into account and not mine into faces-config-custom.xml.
The origin of this problem comes from web.xml :

the tag :

<context-param>
      <param-name>javax.faces.CONFIG_FILES</param-name>
      <param-value>/WEB-INF/faces-config-app.xml,/WEB-INF/faces-config-beans.xml,/WEB-INF/faces-config-common.xml,/WEB-INF/faces-config-repo.xml,/WEB-INF/faces-config-wcm.xml,/WEB-INF/faces-config-custom.xml,/WEB-INF/faces-config-enterprise.xml,/WEB-INF/faces-config-navigation.xml</param-value>
   </context-param>

the second param-value is a ordered list. So the first navigation took into account was the one in faces-config-navigation.xml. So I put it in the end of the list.

Hoping it might help someone Smiley Wink.

bkoszut
Champ in-the-making
Champ in-the-making
I had the same problem and used your solution. Thank you.