I am using ActionForms that contain collection of objects. These objects contain other collections of objects as a field, in this way representing composite object structure with nested collections. This collection is automatically filled by Struts once the form is submitted by the help of indexed properties and commons-collections LazyList class. Sample property name:
domainObjects[0].segments[0].classes[0].value Now I want to implement form fields validation using the Validator plug-in. By using <field property="fieldName" indexedListProperty="domainObjects" depends="required "> I succeed with the validation of all simple fields of the objects in first collection (called domainObjects) Now I want in a similar way to validate the fields of the nested collections of objects. I thought that this will work: <field property="domainObjects[].segments[].classes[].value" depends="required,mask"> But unfortunately it does not, while this work: <field property="domainObjects[0].segments[0].classes[0].value" depends="required,mask"> My question is: Is there a way to assign single validation rule to the same field of the objects in collection and also is there a way to find the index of the wrong field in collection, if error occur? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]