0 Replies Latest reply on Dec 2, 2009 8:15 PM by Marlin Johnson

    PostConstruct injected value is null

    Marlin Johnson Newbie
      @Name("phoneRegistrationListFilterUser")
      @Scope(ScopeType.CONVERSATION)
      public class PhoneRegistrationListFilterUser extends EntityQuery<PhoneRegistration>
      {
      
          @In(required = true)
          TnsUser tnsUser;
      
          @Factory("availUsers")
          private void loadAvailUsersList()
          {
              System.out.println(tnsUser);
          }
      
          @PostConstruct
          public void init()
          {
              System.out.println("Post construct");
              System.out.println(tnsUser);
             // this.userFieldOffice = tnsUser.getFieldOfficeId();
          }
      }
      
      



      I am having an issue where tnsUser is null in the @PostConstruct init method.  It is not null in the @Factory method.  I was under the impression that the injection should be complete when the @PostConstruct method is called. Also the @In annotation sets the value as required, so I do not understand how it could possibly be null.
      Thank you for your help.