This content has been marked as final.
Show 2 replies
-
1. Re: Session context in @Create method
beligum.b.beligum.org Oct 6, 2008 12:10 PM (in response to beligum.b.beligum.org)More info regarding this issue:
The collection is part of a session-scoped entity bean.
I tried to do a entityManager.refresh(myEntityBean) in the @Create method, and I'm getting aEntity not managed
exception. The bean get's initialized in the Authenticator bean ofter login, and is outjected with a Session scope using annotations:@Out(required=true, scope=SESSION) private Principal currentPrincipal;
I also tried the different approach as in the examples:
Contexts.getSessionContext().set("authenticatedMember", member);
No luck there either.
Btw, I'm using Seam 2.0.2.SP1 on JBoss 4.2.0
-
2. Re: Session context in @Create method
beligum.b.beligum.org Oct 6, 2008 1:55 PM (in response to beligum.b.beligum.org)Fixed.
For future reference:
Forgot to add<action execute="#{identity.login}" if="#{validation.succeeded}"/>
to pages.xml.