Interface INullAcceptingValidator<T>

  • Type Parameters:
    T - type of validatable
    All Superinterfaces:
    org.apache.wicket.util.io.IClusterable, IValidator<T>, Serializable

    public interface INullAcceptingValidator<T>
    extends IValidator<T>
    Marker interface for validators that will accept a null value. Without implementing this interface Wicket will never pass null values to IValidator.validate(IValidatable).

    Keep in mind that the FormComponent must have set the required property to false, otherwise Wicket will not permit the validator to process the null value.

    Since:
    1.2.6
    Author:
    Matej Knopp
    See Also:
    IValidator, FormComponent.setRequired(boolean)