Hi,
I am doing password validation. If the fields newPassword and confirmNewPassword have equal values, i have to proceed to success page.
Entry in the validation.xml is :
<field property="confirmNewPassword" depends="validwhen">
<msg name="validwhen" key="errors.matchfields"/>
<arg0 key="ResetPasswordForm.ConfirmNewPassword"/>
<arg1 key="ResetPasswordForm.NewPassword"/>
<var><var-name>
test</var-name><var-value>(*this* == newPassword)</var-value></var>
</field>
When i give equal values in both fields, success page is displayed. But if i give invalid values, there are no error messages (alert messages) shown. "Page cannot be found" error page is shown.
What i have to do show the error in the alert messages(similar to the messages shown for required, minlength etc)
Thanks in advance.
Kavitha