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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user