1 Reply Latest reply on Jan 21, 2008 7:03 AM by marx3

    Unneded Seam instantiation of object

    marx3 Apprentice

      I have object defined like this:

      @In(required = false, create=false)
      @Out(required = false)
      private MyClass myClass; //entity bean

      inside bean defined like this:

      Object myClass doesn't exists in parent conversation.
      When I first enters form (starting nested conversation) using this bean (it's items list) everything is ok, myClass doesn't exist in conversation context.

      But when I press "search" - suddenly myClass is filled with new object of MyClass (it's created by Seam like "new MyClass()" because all fields inside are empty).

      I don't understand why Seam instantiates new object even if he is told not to do that (create=false)?