[jboss-user] [JBoss Seam] - Re: seam-space and NotLoggedInException, exceptions.xml

shane.bryzak@jboss.com do-not-reply at jboss.com
Sun Feb 18 22:50:06 EST 2007


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



More information about the jboss-user mailing list