6 Replies Latest reply on Feb 13, 2006 1:57 PM by Gavin King

    @Factory problem

    Magnus Sandberg Novice

      I have this:

      @In(create = true)
      private InObj inObj;
      private OutObj outObj
      public void init() { .. }
      public String action() [ ... }

      The inObj is a Session object.

      When accesing 'outObj' from a page the Factory method is called as expected with a value assiged to inObj.

      But when calling the action() method from a page the Factory method is called again but the inObj is null. This will cause my init() method to throw, Seam catched the exception and logs it and then Seam calls my action() method but with a value injected into the inObj and the correct page is shown.

      This seams like a bug to me but maybe I'm not using the Factory pattern correctly?