I'm using Struts 1.2.9 and its validator framework. The validation of an indexed property stops on the first element that fails vaildation. For example, the following list of postal addresses is being validated:
My validation.xml contains something like:
<field property="city" indexedListProperty="addresses" depends="...">
. . .
When validating the city fields, it would go from addresses.city upto addresses.city. But when validation fails at addr.city, the rest is not being validated anymore (i.e. addr.city and addr.city are not validated). It would be better if addr.city and addr.city fields are validated, even if one of them fails.
Note that this behavior also affects state and zip fields. Say for example, if addr.state fails validation, it will no longer continue to validate addr.state.
- is duplicated by
VALIDATOR-245 Not all of the indexedListProperty collection elements are validated