4 Replies Latest reply on Aug 31, 2007 2:47 AM by Troy Tarrrant

    @AutoCreate and create = true does not work

    Troy Tarrrant Newbie

      Hi,

      I have two APPLICATION scoped components and one needs to be @In jected with the other, however I get

      SEVERE: Error Rendering View[/cgsimulateentry.xhtml]
      org.jboss.seam.RequiredException: In attribute requires non-null value: entrySimulation.exAP


      Seam recognizes the components and they are in the right scope as I can see this in the JBoss startup.

      17:17:54,968 INFO [Component] Component: entryGate, scope: APPLICATION, type: JAVA_BEAN, class: model.EXAccessPoint
      17:17:54,976 INFO [Component] Component: entrySimulation, scope: APPLICATION, type: JAVA_BEAN, class: model.EXSimulation



      My two components look like this:

      @Name("entryGate")
      @Scope(ScopeType.APPLICATION)
      @AutoCreate
      public class EXAccessPoint {
      
       @Logger Log log;
      
       @In EntityManager em;
      ...
      
      @Name("entrySimulation")
      @Scope(ScopeType.APPLICATION)
      public class EXSimulation {
      
       @Logger Log log;
      
       @In EXAccessPoint exAP;
      ...



      What have I missed why can't seam auto create the EXAccesPoint class when it needs to be @in-jected into EXSimulation??

      Thanks

      Troy