This content has been marked as final.
Show 1 reply
-
1. Re: Seam Security loginSuccessful observer not firing
gonorrhea Apr 1, 2009 6:18 AM (in response to troy.sellers)from Seam 2.1.1.GA ref doc:
15.3.2.2. Writing an event observer for security-related events
Say for example, that upon a successful login that some user statistics must
be updated. This would be done by writing an event observer for the
org.jboss.seam.security.loginSuccessful event, like this:@In UserStats userStats; @Observer("org.jboss.seam.security.loginSuccessful") public void updateUserStats() { userStats.setLastLoginDate(new Date()); userStats.incrementLoginCount(); }
This observer method can be placed anywhere, even in the Authenticator component itself.