Hello..
I'd juste understand how JSF IOC container works..i tried to do something
like ..
<managed-bean>
<managed-bean-name>person</managed-bean-name>
<managed-bean-class>x.y.Person</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>adress</property-name>
<property-class>x.y.z.Adress</property-class>
<value>#{adress}</value>
</managed-property>
</managed-bean>
<managed-bean>
<managed-bean-name>adress</managed-bean-name>
<managed-bean-class>x.y.z.Adress</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>..</property-name>
<property-class>...</property-class>
<value>#{adress}</value>
</managed-property>
</managed-bean>
On the Person bean when I set adress value, it's not the same instance of
the adress on the session..I should do #{person.adress.xx} to get adress
values on the jsf pages..
how can i share identical instance for the bean..???
using annotation and seam we can write on the Person bean:
@In("adress")
private Adress adress;
thanks ..
--
View this message in context:
http://www.nabble.com/JSF-and-dependency-injection-tf4605688.html#a13151202
Sent from the MyFaces - Users mailing list archive at Nabble.com.