This content has been marked as final.
Show 2 replies
-
1. Re: how to configure Seam so that login form checks users ev
shane.bryzak Jan 28, 2008 4:14 PM (in response to gchan)You really only want to call identity.logout() if you're logged in. You could try doing something like this:
@Name("securityAction") public class SecurityAction { @In Identity identity; public void logoutIfLoggedIn() { if (identity.loggedIn()) identity.logout(); } }
<page view-id="/home.xhtml" action="#{securityAction.logoutIfLoggedIn}">
-
2. Re: how to configure Seam so that login form checks users ev
gchan Jan 28, 2008 5:11 PM (in response to gchan)Thank you very much!