This content has been marked as final.
Show 5 replies
-
1. Re: seam-space and NotLoggedInException, exceptions.xml
pmuir Feb 1, 2007 11:21 AM (in response to hstang)I found the same thing http://jira.jboss.org/jira/browse/JBSEAM-752
-
2. Re: seam-space and NotLoggedInException, exceptions.xml
smurfs Feb 18, 2007 6:26 PM (in response to hstang)I have also noticed my log filing up with NotLoggedInException stake traces even though redirection is working fine.
Shane also commented on this in Jira JBSEAM-752 so could someone advise if this is going to be looked into. Thanks. -
3. Re: seam-space and NotLoggedInException, exceptions.xml
gavin.king Feb 18, 2007 10:37 PM (in response to hstang)The stack traces are expected, but there is new functionality in CVS to give you an option that doesn't show them.
ie. login-required="true". -
4. Re: seam-space and NotLoggedInException, exceptions.xml
shane.bryzak Feb 18, 2007 10:50 PM (in response to hstang)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. -
5. Re: seam-space and NotLoggedInException, exceptions.xml
smurfs Feb 19, 2007 3:50 AM (in response to hstang)Thanks for quick response.
Presumably the page attribute login-required, as in
<page view-id="/main.xhtml" login-required="true">
performs the same function as the empty page element<restrict/>
so only one needs to be specified?