[
http://www.stripesframework.org/jira/browse/STS-781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Frederic Daoud resolved STS-781.
--------------------------------
Resolution: Not a Bug
This is not a bug. Indexed properties are meant to work this way. From the docs
(http://www.stripesframework.org/display/stripes/Indexed+Properties):
"There is, however, one big change in validation. Required field validations
are only applied if at least one value with the same index was supplied. To
understand this it is easier to think of indexed properties as a mechanism for
creating multi-row forms. And this change means that rows in the form that are
completely empty are ignored.
For example, in the Bugzooky sample application the Administer Bugzooky page
shows the form we have been using as an example above. Look back at the JSP
example and you'll notice that an extra row is put in at the end, with no
values in it. If the user does not enter anything in this row, the browser will
submit it, but because all the fields are empty, Stripes will ignore it and
raise no errors. However, if the user entered any field, say username, and left
the others blank then a host of validation error messages would show up."
> Required properties of indexed fields not always validating
> -----------------------------------------------------------
>
> Key: STS-781
> URL: http://www.stripesframework.org/jira/browse/STS-781
> Project: Stripes
> Issue Type: Bug
> Components: Validation
> Affects Versions: Release 1.5.4
> Reporter: Aaron Porter
>
> When there is a single required property of an indexed field an empty value
> doesn't result in a validation error. If another property value is supplied
> for the indexed field the validation does occur correctly.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development