Hello!
I would say it depends on the validation being used on the List of Foo objects.
For example:
@ValidateNestedProperties({
@Validate(field = "bar", required = true),
@Validate(field = "bar1", required = true),
@Validate(field = "bar2", required = true),
@Validate(field = "bar3", required = true),
@Validate(field = "bar4, required = true),
@Validate(field = "bar5", required = true)
})
private List<Foo> foos;
Hope that helps! The bazooky example shows this concept quite clearly.
Joaquin
On Oct 22, 2010, at 1:39 PM, Nathan Maves wrote:
> Give the following parameter
>
> foo[0].bar=abc
> foo[1].bar=abc
> foo[2].bar=
> foo[3].bar=abc
>
> I would expect the Collection<Foo> in my action to have a size of 3. Instead
> I get a size of 4 where one of the items in the collection is null.
>
> Is this the correct behavior?
>
> Nathan
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America contest
> Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev_______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
Joaquin Valdez
[email protected]
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users