ApplicationGlobals cannot be injected into RequestFilter. Inject
RequestGlobals into it instead or inject ApplicationStateManager (?) into
it.
----- Original Message -----
From: "Eric Ma" <[EMAIL PROTECTED]>
To: <users@tapestry.apache.org>
Sent: Friday, October 03, 2008 9:31 AM
Subject: [T5] How to get to ApplocationGlobals and ServletContext
I have a custom RequestFilter, which authenticates users and checks for
user
roles, and is applied to all pages. To avoid database hit on every
request,
authenticated user is cached in Acegi SecurityContextHolder.
Now, another part of the app allows admins to update user roles, adding or
removing privileges. When that happens, I set a flag in ServletContext
for
user roles being dirty, forcing the user to be re-authenticated.
So what I need to do is that in my RequestFilter, retrieve the flag from
ServletContext. The problem I am running into is that the injected
ApplicationGlobals in my RequestFilter is null. My questions are a) is
ApplicationGlobals injectable in a RequestFilter, and b) if not, is there
a
way to get hold of ServletContext somehow?
Thanks,
Eric
--
View this message in context:
http://www.nabble.com/-T5--How-to-get-to-ApplocationGlobals-and-ServletContext-tp19797812p19797812.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]