public final class VSelectValue extends FieldValidator
Constructor and Description |
---|
VSelectValue(Select field,
String errorMessage,
String badSelectValue) |
Modifier and Type | Method and Description |
---|---|
boolean |
validate(FormData fd,
javax.servlet.http.HttpServletRequest req)
Works with the
Select field. |
getErrorMessage, getField
public VSelectValue(Select field, String errorMessage, 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, javax.servlet.http.HttpServletRequest req)
Select
field.validate
in class FieldValidator
ClassCastException
- If the field's Field#getValue
method
does not return a collection of
Select.Option
objects