|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfc.web.forms.FieldValidator
fc.web.forms.VSelectValue
public final class VSelectValue
Validates that a select field has:
Constructor Summary | |
---|---|
VSelectValue(Select field,
java.lang.String errorMessage,
java.lang.String badSelectValue)
|
Method Summary | |
---|---|
boolean |
validate(FormData fd,
javax.servlet.http.HttpServletRequest req)
Works with the Select field. |
Methods inherited from class fc.web.forms.FieldValidator |
---|
getErrorMessage, getField |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public boolean validate(FormData fd, javax.servlet.http.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |