fc.web.forms
Class VFilled

java.lang.Object
  extended by fc.web.forms.FieldValidator
      extended by fc.web.forms.VFilled

public final class VFilled
extends FieldValidator

Validates that the field is filled out by the user.


Constructor Summary
VFilled(Field field, String errorMessage)
          Creates a new validator that fails validation if the fields is not filled out by the user.
 
Method Summary
 boolean validate(FormData fd, javax.servlet.http.HttpServletRequest req)
          Validates a field's value to be isFilled.
 
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

VFilled

public VFilled(Field field,
               String errorMessage)
Creates a new validator that fails validation if the fields is not filled out by the user.

Method Detail

validate

public boolean validate(FormData fd,
                        javax.servlet.http.HttpServletRequest req)
Validates a field's value to be isFilled.

Specified by:
validate in class FieldValidator