> -----Original Message-----
> From: Adam Hardy > Rob,
> how does this validation inheritance work? Is it documented anywhere?
Yes, when Nacho G. Mac Dowell provided the patch, in Bug 27870, he also provided a
unit test.
This is from the validator.xml file in the unit tests:
<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration
1.2.0//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd">
<form-validation>
<formset>
<form name="nameForm" extends="baseForm">
<field property="lastName"
depends="required">
<arg0 key="nameForm.lastname.displayname"/>
</field>
</form>
<form name="nameForm2" extends="nameForm">
<!--override rule with no action (set to "" and Field will not find any
tokens
while iterating StringTokenizer(",") in the process method) -->
<field property="lastName" depends=""/>
<!--override rule with different message-->
<field property="firstName" depends="required">
<arg0 key="nameForm.lastname.displayname"/>
</field>
</form>
<form name="baseForm">
<field property="firstName" depends="required">
<arg0 key="nameForm.firstname.displayname"/>
</field>
</form>
</formset>
</form-validation>
> Adam
Hope this helps.
-Rob
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]