This content has been marked as final.
Show 4 replies
-
1. Re: Redirect after logout
lightguard Dec 23, 2011 12:27 AM (in response to kgoedert)@Observe the PostLoggedOutEvent event and issue your redirect from that method.
-
2. Re: Redirect after logout
kgoedert Dec 23, 2011 4:43 AM (in response to kgoedert)Thank you. It worked as expected
-
3. Re: Redirect after logout
filosofisto Jul 19, 2012 12:42 PM (in response to kgoedert)How to redirect in observer method?
thx
-
4. Re: Redirect after logout
kgoedert Jul 19, 2012 12:51 PM (in response to filosofisto)I did something like this
{code}
@ApplicationScoped
public class LogoutObserver {
@Inject
private FacesContext context;
@Inject
private HttpServletRequest httpRequest;
public void onLogoutEvent(@Observes final PostLoggedOutEvent event) throws IOException {
context.getExternalContext().redirect("/sample/login.sm");
}
}
{code}
Hope it helps
Kelly