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.
ohhhhh yeah baby !!!
I'm not used to the event model !!
Thx, works fine for me now :)
Definitely consider creating custom events as well. The decoupling it gives you can help to simplify extremely complex business rules.
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>