[jboss-user] [JBoss Seam] - Re: how to configure Seam so that login form checks users ev
shane.bryzak@jboss.com
do-not-reply at jboss.com
Mon Jan 28 16:14:09 EST 2008
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}">
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124190#4124190
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124190
More information about the jboss-user
mailing list