There's actually no reason Omar's original code sample shouldn't work either though. That's a valid way to define and set a list, with multiple values.
There's actually no reason Omar's original code sample shouldn't work either though. That's a valid way to define and set a list, with multiple values.
Colin Sampaleanu
SpringSource - http://www.springsource.com
Hi
The list in XML is an ArrayList and needed to be mapped to a Arraylist
in the setter and getter methods.
Many thanks,
Aslam.
All,
Just wanted to clarify this post. The code that Omar demonstrated as the first solution will function just fine. When you need a List on one of your beans, then define a property of type List and use the <list> element in the XML configuration. The actual implementation that Spring uses may change so you shouldn't rely on a particular type such as ArrayList.
Rob