I have a UserProfile Bean that I populate in the Authenticator method when a User successfully logs in. I then use this Bean throughout my app for any User related data.
My Authenticator class outjects the UserProfile like this:
@Out(required=true, scope=SESSION) UserProfile userProfile;
@In UserProfile userProfile;
javax.el.ELException: org.jboss.seam.RequiredException: @Out attribute requires non-null value: authenticator.userProfile
Contexts.getSessionContext().set...Is this the preferred way of doing it? Can anyone recommend a better approach?
Bit obvious really.
Adding @In(create=true) to the UserProfile declaration in the Authenticator class solves the problem. I was creating it with new().