[jboss-user] [JBoss Seam] - No Seam component Actor injected

tim_ph do-not-reply at jboss.com
Wed Aug 29 11:44:14 EDT 2007


When I inject Actor into authenticator() generated by seam-gen, there is no "actor" injected into the variable and it fails at login.

  | @Scope(ScopeType.APPLICATION) // doesn't matter the scope
  | @Name("authenticator")
  | public class Authenticator
  | {
  | 	@Logger	private Log log;
  | 	@In	private Identity identity;
  | 	@In	private Actor actor; // use actor for business process
  | 	
  | 	@Out(value = "currentUser", required=false, scope = ScopeType.SESSION)
  | 	private Account currentUser;
  | 
  | 	@In("#{accountList.resultList}")
  | 	private List<Account> accounts;
  | 
  | 	@Transactional
  | 	public boolean authenticate()
  | 	{
  | 		String user = identity.getUsername();
  | 		log.info("Authenticating #0", user);
  | 		actor.setId(user);
  | ...
  | 

Error says "In attribute requires non-null value: authenticator.actor"

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079243#4079243

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079243



More information about the jboss-user mailing list