[jboss-user] [JBoss Seam] - Re: Value injection not always working with Seam 1.1

gavin.king@jboss.com do-not-reply at jboss.com
Tue Dec 19 18:47:43 EST 2006


OK, now I know what changed.


The bijected variables of the outer class *only* have well-defined values during a method call to the outer class! They do not have well-defined values after the invocation ends. To enforce this, Seam now nullifies injected variables at the end of the invocations. So the following will not work:

foo.getInnerClass().bar()

Of course, you could have getInnerClass() construct a new instance of InnerClass, and initialize its instance variables to the value of the bijected  variables in the constructor.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995171#3995171

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995171



More information about the jboss-user mailing list