public final class VPasswordGroup extends FormValidator
Automatically resets both password fields if they do not match.
Note, password rules such as required length, characters
etc., are not checked by this validator. Add a VText
to each password field for that purupose.
Constructor and Description |
---|
VPasswordGroup(Form f,
String name,
String errorMessage,
Password field_one,
Password field_two) |
Modifier and Type | Method and Description |
---|---|
boolean |
validate(FormData fd,
javax.servlet.http.HttpServletRequest req)
Validates multiple fields together.
|
getErrorMessage, getName, setErrorMessage, toString
public boolean validate(FormData fd, javax.servlet.http.HttpServletRequest req)
FormValidator
Important notes: Typically, validation should be skipped in the following circumstances:
DependentField
and the
DependentField#shouldValidate
method returns false.validate
in class FormValidator