RE: Submitting Indexed Properties and List Size/Resize

2004-07-06 Thread Ellingson, David
--Original Message- From: atta-ur rehman [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 3:33 PM To: Struts Users Mailing List Subject: Re: Submitting Indexed Properties and List Size/Resize Hello Dave, I think you're pretty close! I don't see why do you have to resize the list

RE: Submitting Indexed Properties and List Size/Resize

2004-07-06 Thread Robert Taylor
David, take a look at lazyList here: http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_1/org/apache/commons/collections/ListUtils.html robert > -Original Message- > From: Ellingson, David [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 06, 2004 3:22 PM > To: '[EMAIL PROT

Re: Submitting Indexed Properties and List Size/Resize

2004-07-06 Thread atta-ur rehman
Hello Dave, I think you're pretty close! I don't see why do you have to resize the list in the setter though? Here is what I've done and it works: public BlockEffort getBlock(int index) { while (blockEffortList.size() <= index) { blockEffortList.add(new BlockEffort()); } return (BlockEff