Class VSelectValue


public final class VSelectValue extends FieldValidator
Validates that a select field has:
  1. some value(s)
  2. the values(s) are not a pre-specified value.
This is useful to see if the select field (popup) was selected by the user (typically, select fields may be displayed with a dummy default ---choose an option--- type selection. In that case, we would check to see if the select value was not ---choose an option---.
  • Constructor Details

    • VSelectValue

      public VSelectValue(Select field, String errorMessage, String badSelectValue)
      Parameters:
      field - the parent field
      errorMessage - error message for unsuccessful validation error.
      badSelectValue - the select value which will cause the validation to fail
  • Method Details