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

    No Seam component Actor injected

    tim_ph

      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"