7 Replies Latest reply on Aug 30, 2007 12:18 PM by Tim

    No Seam component Actor injected

    Tim Newbie

      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
      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;
       private List<Account> accounts;
       public boolean authenticate()
       String user = identity.getUsername();
       log.info("Authenticating #0", user);

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