|
From: <jue...@we...> - 2004-03-22 18:03:46
|
Yep, that's a bug - it's already fixed in CVS, to be included in the =
upcoming 1.0 final.
Juergen
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...]On Behalf
Of Ou, Rong
Sent: Monday, March 22, 2004 6:35 PM
To: spr...@li...
Subject: [Springframework-developer] property placeholder in nested bean
definitions
Hi all,
I am not sure if this is a "feature" or a bug, but here it is.
I am trying to use property placeholders in my bean definition. I also =
happen to have some nested bean definitions. But it seems the property =
placeholders only work on top level bean definitions, not inside the =
nested ones.
So this works:
<beans>
<bean class=3D"com.foo.A">
<property name=3D"b">
<ref bean=3D"b"/>
</property>
</bean>
<bean id=3D"b" class=3D"com.foo.B">
<property name=3D"xyz">
<value>${xyz.value}</value>
</property>
</bean>
</beans>
But this doesn't:
<beans>
<bean class=3D"com.foo.A">
<property name=3D"b">
<bean id=3D"b" class=3D"com.foo.B">
<property name=3D"xyz">
<value>${xyz.value}</value>
</property>
</bean>
</property>
</bean>
</beans>
Is this a bug?
Thanks,
Rong
=20
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dick
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|