<af:goLink text=' #{securityContext.authenticated ? "Logout" : "Login"}'
id="gl1"
destination='#{securityContext.authenticated ? "/adfAuthentication?logout=true&end_url=/<context-root>/faces/start-page-of-the-app" : "/adfAuthentication?success_url=/<context-root>/faces/start-page-of-the-app"} '/>
or
Use a Logout Button with an Action Listener method to avoid this exception while logout - oracle.adf.controller.ControllerException: ADFC-04008: The BindingContext on the session is null
Session Invalidate Add before logging out : update required
id="gl1"
destination='#{securityContext.authenticated ? "/adfAuthentication?logout=true&end_url=/<context-root>/faces/start-page-of-the-app" : "/adfAuthentication?success_url=/<context-root>/faces/start-page-of-the-app"} '/>
or
Use a Logout Button with an Action Listener method to avoid this exception while logout - oracle.adf.controller.ControllerException: ADFC-04008: The BindingContext on the session is null
<af:commandButton text=" #{securityContext.authenticated ? "Logout" : "Login"}" id="cb7"
actionListener="#{backingBeanScope.backingBean.logout}"/>
public void logout(ActionEvent actionEvent) {
ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
HttpServletRequest request = (HttpServletRequest)ectx.getRequest();
String url = request.getContextPath() +
"/adfAuthentication?logout=true&end_url=/faces/start-page-of-the-application";
try
{
ectx.redirect(url);
}
catch (Exception ex)
{
System.out.println("Exception!! Logging out"+ex);
// Handle the exception
}
}
Session Invalidate Add before logging out : update required
1 comment:
never mind
Post a Comment