struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@blueyonder.co.uk>
Subject Re: Indexed Properties and Lazy List behaviour
Date Fri, 01 Oct 2004 23:50:14 GMT
OK I think I must be spreading confusion - thats what you get, arrays of
beans, not strings.

For LazyValidatorForm the default for an indexed property is an ArrayList of
LazyDynaBean - and it populates the LazyDynaBean for you automatically.

For LazyDynaBean the default indexed property is an ArrayList - but it
doesn't populate it with anything. If however you create a custom
LazyDynaBean (like the example I gave) changing the default indexed property
to an LazyDynaBean array then the default indexed property is an Array of
LazyDynaBean  - populated automatically. Now you can have 1...n levels of
indexed beans to your hearts content.

Niall

----- Original Message ----- 
From: "Hubert Rabago" <hrabago@gmail.com>
Subject: Re: Indexed Properties and Lazy List behaviour

> My understanding of the question on the user list was for a form which
> contained an array of beans, instead of just an array of strings.  An
> example would be a form bean containing a list/array of children, each
> with a name, date of birth, daily allowance, etc.  If each child is a
> dyna form, I can use FormDef for each element.



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


Mime
View raw message