You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Shekhar Jain <sh...@gmail.com> on 2005/07/26 19:19:49 UTC

ActionForm with List of beans question

I have an ActionForm with a List of beans with a variable size. In my
reset() method I'm trying to resize the List to the size I need. 
Although the reset() method has the request object getting passed in
as a parameter it appears to be empty. Is there any reason it is
there? If I have a hidden field in the form where I store the number
of items in the list how can I use it to get the right List size??

Shekhar

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: ActionForm with List of beans question

Posted by Rick Reumann <st...@reumann.net>.
Shekhar Jain wrote the following on 7/26/2005 1:19 PM:
> I have an ActionForm with a List of beans with a variable size. In my
> reset() method I'm trying to resize the List to the size I need. 

You really shouldn't have to do this. It's much easier to just wrap your 
list in a LazyList. More info here...

http://wiki.apache.org/struts/StrutsCatalogLazyList


-- 
Rick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org