This content has been marked as final.
Show 5 replies
-
1. Re: Extending Identity in SEAM 2.2.1
tausuahmed May 26, 2011 1:10 AM (in response to ruthlesset)Hi,
I'd like to answer your second question first.
1. Make sure you access identity instance from CustomIdentity.
2. As far as Duplicate component is concerned ant clean your project properly and build it.
Regards,
Tauseef -
2. Re: Extending Identity in SEAM 2.2.1
ruthlesset May 26, 2011 1:13 PM (in response to ruthlesset)Thank you Tauseef.
When you mean instance of CustomIdentity I assume you meant
CustomIdentity ccoIdentity = new CustomIdentity(); ccoIdentity.setUserId(user.getRecid());
Kindly correct me if I'm wrong.
-
3. Re: Extending Identity in SEAM 2.2.1
ruthlesset May 26, 2011 2:22 PM (in response to ruthlesset)The correct way to do it in SEAM would be as below I assume?
@In CustomIdentity customIdentity; ... customIdentity.setUserId(user.getRecid());
This is the error I get
11:17:38,128 WARN [org.jboss.seam.security.jaas.SeamLoginModule] Error invoking login method: javax.el.ELException: javax.ejb.EJBTransactionRolledbackException: @In attribute requires non-null value: authenticator.customIdentity ... Caused by: javax.ejb.EJBTransactionRolledbackException: @In attribute requires non-null value: authenticator.customIdentity ... Caused by: org.jboss.seam.RequiredException: @In attribute requires non-null value: authenticator.customIdentity
-
4. Re: Extending Identity in SEAM 2.2.1
tausuahmed May 30, 2011 1:28 AM (in response to ruthlesset)Try this CustomIdentity customIdentity = (CustomIdentity)Component.getInstance(CustomIdentity.class);
Tauseef.
-
5. Re: Extending Identity in SEAM 2.2.1
ruthlesset Jun 1, 2011 7:10 PM (in response to ruthlesset)Thank you Tauseef. That works.
Do you know why this does not work?
@In CustomIdentity customIdentity;