[jboss-user] [JBoss Seam] - how to configure Seam so that login form checks users everyt

gchan do-not-reply at jboss.com
Mon Jan 28 12:29:31 EST 2008


I am new to SEAM and I am using the icefaces booking example, 
in jboss-seam-2.0.0.GA.
I am using jboss-4.2.2.GA and ICEfaces-1.7.0-DR3a-bin.

In the example, the home.xhtml, the login action is #{identity.login}.
If I successful logged in and go back to the page and fill out with the form 
with fake info and hit the submit button again, it does not authenticate user again since user was previously logged in and session hasn't expired.

If I modify the pages.xml to 
<page view-id="/home.xhtml" action="#{identity.logout}">

It sits there and keeps repeating this message.
12:17:57,562 INFO  [Contexts] starting up: org.jboss.seam.security.identity
12:17:57,562 WARN  [RuleBasedIdentity] no security rule base available - please install a RuleBase with the name 'securityRules' if permission checks are required.

I tried to add a security.drl but I am not sure as how to configure the file.
I can change the action in <page view-id="/home.xhtml" action="#{identity.logout}"> but I am not sure as to how I would call the identity.logout.

How do I configure home.xhtml page so that the authenticate method will always be call and the security is handle properly?

Any help is greatly appreciated.  Thank you very much.

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

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

More information about the jboss-user mailing list