Nathan,

Are you asking that you would expect:

 > foo[0].bar=abc
 > foo[1].bar=abcd
 > foo[2].bar=
 > foo[3].bar=abcde

To end up as:

 > foo[0].bar=abc
 > foo[1].bar=abcd
 > foo[2].bar=abcde

Although that's possible I don't think Stripes should be the one 
deciding that the 3rd value of null should simply be discarded.  I would 
prefer to post-filter myself in the action bean which thus allows having 
both possible outcomes.

BTW while some collections do not allow null values many do IIRC.

Cheers,

--Nikolaos




Nathan Maves wrote:
> In my case there are no required validations.
>
> On Fri, Oct 22, 2010 at 3:16 PM, Joaquin Valdez 
> <joaquinfval...@gmail.com <mailto:joaquinfval...@gmail.com>> wrote:
>
>     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
>     > Stripes-users@lists.sourceforge.net
>     <mailto:Stripes-users@lists.sourceforge.net>
>     > https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>     Joaquin Valdez
>     joaquinfval...@gmail.com <mailto:joaquinfval...@gmail.com>
>
>


------------------------------------------------------------------------------
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
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to