posted 19 years ago
You could define two separate validations instead of combining both in one.
<field
property="email"
depends="required">
<arg0 key="registration.email"/>
</field>
<field
property="email"
depends="email">
<arg0 key="registration.email"/>
</field>
The question is, what's the point? It doesn't make much sense to me to show them both. If the user doesn't provide a required email address, then of course it is invalid. IMO, the errors messages should be mutually exclusive: if one is shown, the other one shouldn't.