|
From: Steven D. <ste...@gm...> - 2005-01-07 15:23:15
|
Hi, When I load the application context with the example below I get an exception because a bean with id "test3" cannot be found. I understand this bean does not exist in the scope where it's referenced. Is there a way to make beans with an id or name available in the root scope apart from defining them there? <bean id="test2" class="sandbox.TestObject"> <property name="value"> <list> <bean class="sandbox.TestObject"> <property name="value"> <value>a string</value> </property> </bean> <bean class="sandbox.TestObject"> <property name="value"> <list> <bean id="test3" class="sandbox.TestObject"> <property name="value"> <value>another string</value> </property> </bean> </list> </property> </bean> <bean class="sandbox.TestObject"> <property name="value"> <list> <ref bean="test3"/> </list> </property> </bean> </list> </property> </bean> Steven |