2 Replies Latest reply on Feb 8, 2008 12:03 PM by Norman Richards

    @In and @Factory

    Gerson M Newbie

      Code example:

      ...
      @Name("componentA")
      @Stateful
      public class ComponentA{
      
       @In(required=false)
       @Out(required=false, scope=PAGE)
       private Integer x;
      
       @Factory("x")
       public void initX(){
       x = 1;
       }
      
       public void someMethod(){
       ... // why is 'x' null here?
       }
      
      }
      


      How I can tell Seam to invoke the Factory Method whenever someMethod() is called if 'x' is null?