Stéphane Zuckerman wrote the following on 4/5/2005 11:31 AM:
because your intial String[] isn't large enough.
OK, that explains my problem then.
I think if you use a LazyList things will be easier. If you use indexed properties for a String[] things are going to become more tricky (although I think there might a lazy array type also).
Can I use "simple" Lists as well ?
Thanks a lot for the help anyway !
Good stuff on LazyList here http://wiki.apache.org/struts/StrutsCatalogLazyList
I believe that link explains how to do it with a regular array which you wanted, but I'm used to using Lists which that link describes how to do as well. Basically yes you can use a regular list(ArrayList) BUT you'll need to actually wrap that list in LazyList implementation in your reset.. something like this should work...
YourActionForm { List someList = new ArrayList();
reset(..) {
someList = ListUtils.lazyList(new java.util.ArrayList(), new Factory() { public Object create() { return new ObjectTypeInYourList(); } }); }
I'm actually still confused myself on some of this now (even though the above will work for you for sure). I posted another question to the list and hopefully others can shed some light on the situation.
-- Rick
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]