• Add a Comment
  • Edit
  • More Actions v
  • Quarantine this Entry

Comments (1)

1 VUQX_alessio_raponi commented Permalink

i have found another solution for the logout.

 
--step 1:
 
change in WebContent/components/headerandfooter/PageHeader.jsp
 
the line:
 
<h:commandLink id="logOutLink" styleClass="headerLink" action="#{userInformation.logout}" immediate="true">
<h:outputText id="headerHelpLinkText" styleClass="headerLinkText" value="#{bundle.HeaderLogOut}"></h:outputText>
</h:commandLink>
 
with the following code
 
<h:commandLink id="logOutLink" styleClass="headerLink" action="CustomLogout" immediate="true">
<h:outputText id="headerHelpLinkText" styleClass="headerLinkText" value="#{bundle.HeaderLogOut}"></h:outputText>
</h:commandLink>
 
--step 2:
 
add a navigation rule in WebContent/WEB-INF/faces-config.xml
 
like the following rule
 
<navigation-rule>
<from-view-id>*</from-view-id>
<navigation-case>
<from-outcome>CustomLogout</from-outcome>
<to-view-id>/ibm_security_logout?logoutExitPage=../customMessageLogout.html</to-view-id>
<redirect></redirect>
</navigation-case>
</navigation-rule>
 
if you don't want to show the default logout message, specify your custom html page in the "logoutExitPage" parameters
 
and the work is done :)
 
Best regards
 
Alessio Raponi

Add a Comment Add a Comment