I'm using tapestry5-acegi for authentication. I'd like to use @ApplicationState to make the logged-in user object accessible in my pages, e.g.
@ApplicationState private User user; Somewhere, however, I must initialize my ASO variable when the user logs in. Where can I do this? The only place I have thought of is in my UserDetailsServiceImpl.loadUserByUsername method, which Acegi calls during login. I tried injecting the ApplicationStateManager into UserDetailsServiceImpl and calling "asoManager.set(User.class, user)" from loadUserByUsername, but that throws an exception. Note that I cannot do it in my Login page class, because that submits to something internal to Acegi; I do not get access to the logged-in user there. Surely someone out there has done this already. Any help greatly appreciated. Even better, please add the solution to the tapestry5-acegi documentation. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]