In your model class, define the List as below:
Code:
private List someList = LazyList.decorate(new ArrayList(), FactoryUtils.instantiateFactory(com.abc.xyz.SomeClass.class));
SomeClass is the class that holds each record that you are trying to put at each index.
If you are using ArrayList as your command object, then do the following in your formBackingObject()
Code:
return LazyList.decorate(new ArrayList(), FactoryUtils.instantiateFactory(com.abc.xyz.SomeClass.class));
Any of the above should do the job for you.
To use LazyList and FactoryUtils, you would need to put commons-collection.jar in your classpath.
Regards,
Smruti..