2 Replies Latest reply on Jul 27, 2010 7:11 AM by mireksz.m.szajowski.streamsoft.pl

    Problem with @Factory injectby @In

    mireksz.m.szajowski.streamsoft.pl

      Hello,
      I have following problem I have



      @Name("dictionaryFactory")
      @Scope(ScopeType.APPLICATION)
      public class DictionaryFactory {
      
        @Factory(value = "companyList", scope = ScopeType.APPLICATION)
        public List<CompanyRow> getCompanyList() {
          ....
        }
      }
      





      When I use companyList in my xhtml page then everything works fine. But when I try inject this factory by @In to some class(in situation when companyList isn't exists..first time access). I got following error




      @In attribute requires non-null value: companyList



      Why seam didn't execute factory method ???


      Best regards
      Mirek