Hello,

I have been trying to validate nested forms using the following model:
An ArrayList of Employee objects where each Employee object has an
ArrayList of Address objects and each Address object has a property
named zip that is to be validated as an integer value. The view will
allow the user to edit all addresses at once using nested tags that
map to the html input fields as follows:
employees[0].addresses[0].zip.

This is the validator-rules.xml file entry:
<form name="employeeForm">
  <field property="zip" indexedListProperty="employees.addresses"
depends="integer">
    <arg0 key="address.zip"/>
  </field>
</form>

With the above code I get a validator exception that says unknown
property: addresses.

When just validating one level deep, it seems to work fine.

FYI we are still using struts-1.2.6

Any Ideas?

--
Thank You,

Jason Carter

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to