-
1. Re: Handling of exception from @RolesAllowed failure
gavin.king Oct 21, 2006 5:52 AM (in response to texan)Exception handling is currently the worst thing about JSF.
In seam 1.1, a client-side interceptor might be the way to go. -
2. Re: Handling of exception from @RolesAllowed failure
texan Oct 21, 2006 8:11 PM (in response to texan)I'm thinking the way to go with this is to remove the @RolesAllowed annotation and roll my own, which would throw an exception that my interceptor would catch.
-
3. Re: Handling of exception from @RolesAllowed failure
texan Oct 22, 2006 12:03 PM (in response to texan)That's what I'm doing, based on the LoggedInInterceptor in the Seam "issues" example.
-
4. Re: Handling of exception from @RolesAllowed failure
texan Oct 22, 2006 12:11 PM (in response to texan)It will be a good experience for me, since I haven't done any Interceptor/Annotation integration before. The seam example makes it look easy enough.
Still, it's just frustrating that I can't configure my way out of this one. There's this nice clean mechanism for determining whether a user has permission to do something, yet I can't catch the big ugly exception when there's a failed permission check from the EJB annotation.