Class RangeValidator<Z extends Comparable<? super Z> & Serializable>

Type Parameters:
Z - type of validatable
All Implemented Interfaces:
Serializable, IComponentAwareEventSink, IComponentAwareHeaderContributor, IClusterable, IValidator<Z>
Direct Known Subclasses:

public class RangeValidator<Z extends Comparable<? super Z> & Serializable> extends AbstractRangeValidator<Z,Z>
Validator for checking if a given value falls within [min,max] range. If either min or max are null they are not checked.

Resource keys:

  • RangeValidator.exact if min==max
  • RangeValidator.range if both min and max are not null
  • RangeValidator.minimum if max is null
  • RangeValidator.maximum if min is null

Error Message Variables:

  • name: the id of Component that failed
  • label: the label of the Component (either comes from FormComponent.labelModel or resource key <form-id>.<form-component-id>
  • input: the input value
  • minimum: the minimum allowed value
  • maximum: the maximum allowed value

See Also: