|
From: Ou, R. <Ro...@sa...> - 2004-03-22 19:54:26
|
Yes, the cvs version worked. Thanks!
Rong
> -----Original Message-----
> From: spr...@li...
> [mailto:spr...@li...]
> On Behalf
> Of j=FCrgen h=F6ller [werk3AT]
> Sent: Monday, March 22, 2004 12:02 PM
> To: spr...@li...
> Subject: RE: [Springframework-developer] property placeholder=20
> in nested
> bean definitions
>=20
>=20
> Yep, that's a bug - it's already fixed in CVS, to be included=20
> in the upcoming 1.0 final.
>=20
> Juergen
>=20
>=20
> -----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=20
> nested bean
> definitions
>=20
>=20
> Hi all,
>=20
> I am not sure if this is a "feature" or a bug, but here it is.
>=20
> I am trying to use property placeholders in my bean=20
> definition. I also happen to have some nested bean=20
> definitions. But it seems the property placeholders only work=20
> on top level bean definitions, not inside the nested ones.
>=20
> So this works:
>=20
> <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>
>=20
> But this doesn't:
>=20
> <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>
>=20
> Is this a bug?
>=20
> Thanks,
>=20
> Rong
> =20
>=20
>=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
>=20
>=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
>=20
|