This content has been marked as final.
Show 4 replies
-
1. Re: NotLoggedInException
monkeyden Feb 12, 2008 9:53 AM (in response to vwiencek)Why not just raise the "org.jboss.seam.notLoggedIn" event? I make good use of Seam's authenthication model and I have never had to throw the exception myself.
-
2. Re: NotLoggedInException
vwiencek Feb 12, 2008 10:02 AM (in response to vwiencek)ohhhhh yeah baby !!!
I'm not used to the event model !!
Thx, works fine for me now :) -
3. Re: NotLoggedInException
monkeyden Feb 12, 2008 10:33 AM (in response to vwiencek)Definitely consider creating custom events as well. The decoupling it gives you can help to simplify extremely complex business rules.
-
4. Re: NotLoggedInException
mmichalek Feb 14, 2008 2:45 PM (in response to vwiencek)If you did need to handle this exception, you can map it in pages.xml:
<exception class="org.jboss.seam.security.NotLoggedInException"> <redirect view-id="/login.xhtml"> <message severity="warn"> You must be logged in to use this feature </message> </redirect> </exception>