Just to add to what Gavin's already said, your pages.xml should include a 
login-view-id attribute in the pages element, like this:

<pages login-view-id="/home.xhtml">

Once you've specified the login-view-id, you can then secure individual pages:

    <page view-id="/main.xhtml" login-required="true">

If the user is not authenticated and they try to access main.xhtml, they will 
be redirected to home.xhtml.  

You can see this in action in the booking example.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018670
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to