public final class VSelectValue extends FieldValidator
Constructor and Description |
---|
VSelectValue(Select field,
java.lang.String errorMessage,
java.lang.String badSelectValue) |
Modifier and Type | Method and Description |
---|---|
boolean |
validate(FormData fd,
HttpServletRequest req)
Works with the
Select field. |
getErrorMessage, getField
public VSelectValue(Select field, java.lang.String errorMessage, java.lang.String badSelectValue)
field
- the parent fieldbadSelectValue
- the select value which will cause the
validation to failerrorMessage
- error message for unsuccessful validation error.public boolean validate(FormData fd, HttpServletRequest req)
Select
field.validate
in class FieldValidator
java.lang.ClassCastException
- If the field's Field#getValue
method
does not return a collection of
Select.Option
objects