[jboss-user] [JBoss Seam] - Re: Exception thrown from Authenticator.authenticate method

terryb do-not-reply at jboss.com
Sat Sep 22 06:28:45 EDT 2007


Shane

Thanks for the tip, it worked. I added method in Authenticator class as below:

public boolean isLocked() {
 ...
 return boolean;
}

and then added following page navigation rule

navigation from-action="#{identity.login}"

 rule if="#{not identity.loggedIn and authenticator.locked}"
 redirect view-id="/error.xhtml"/
 /rule

 rule if="#{identity.loggedIn}"
 redirect view-id="/home.xhtml"/
 /rule

/navigation


Although it took me a while to figure out that 'locked' in 'authenticator.locked' is supposed to a method 'isLocked()' in its class.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087488#4087488

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087488



More information about the jboss-user mailing list