Class VSelectValue
java.lang.Object
fc.web.forms.FieldValidator
fc.web.forms.VSelectValue
Validates that a select field has:
- some value(s)
- the values(s) are not a pre-specified value.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class FieldValidator
getErrorMessage, getField
-
Constructor Details
-
VSelectValue
- Parameters:
field- the parent fielderrorMessage- error message for unsuccessful validation error.badSelectValue- the select value which will cause the validation to fail
-
-
Method Details
-
validate
Works with theSelectfield.- Specified by:
validatein classFieldValidator- Throws:
ClassCastException- If the field'smethod does not return a collection ofinvalid reference
Field#getValueSelect.Optionobjects
-