I try to use the new <util:list> configuration, especially with the ability to merge lists. Unfortunately, I wasn't able to get it work.
For example, I have two lists with email addresses which should be merged. The merged list should be an attribute of another bean.
The behaviour is, of course, that one list overrides the other. First I tried to use the parent-child-mechanism to merge the list but there is no parent-attribute for <util:list>.Code:<util:list id="emailAdresses"> <value>foo@bar.com</value> </util:list> <util:list id="emailAdresses" merge="true"> <value>someone@something.com</value> <value>someoneelse@something.com</value> </util:list> <bean id="someBean" class="my.bean.Class"> <property name="emailAdresses" ref="emailAdresses" /> </bean>
What am I doing wrong? Has anybody an example of this?


Reply With Quote
