RE: Indexed Bean Copy

2006-07-11 Thread Pillay, Kiren KN
r this way). I could have used a collection, I'll add it in when I refactor the code. Regards Kiren -Original Message- From: Adam Gordon [mailto:[EMAIL PROTECTED] Sent: 11 July 2006 05:24 PM To: Struts Users Mailing List Subject: Re: Indexed Bean Copy Kiren

Re: Indexed Bean Copy

2006-07-11 Thread Adam Gordon
Kiren- I assume you mean BeanUtils.copyProperties(...) right? If so, I believe the reason you cannot use it is because BeanUtils.copyProperties(...) performs a shallow copy and per the javadocs (HTML tags removed): "...and so complex properties (for example, nested ones) will not be copied."

Indexed Bean Copy

2006-07-11 Thread Pillay, Kiren KN
Hi I've got a domain object which stored an indexed array of objects. <-- Extract of Domain Object public class GroupExposures { private Exposure [] exposures=new Exposure[]{new Exposure(),new Exposure(),new Exposure()}; class Exposure{ float totalSBSA