Interface IFieldValidator

All Superinterfaces:
org.apache.wicket.util.io.IClusterable, Serializable

public interface IFieldValidator extends org.apache.wicket.util.io.IClusterable
Interface implemented by the CMS validation mechanism to enable custom validators to check values and report violations.
  • Method Details

    • getFieldDescriptor

      IFieldDescriptor getFieldDescriptor()
    • getFieldType

      ITypeDescriptor getFieldType()
    • newValueViolation

      Violation newValueViolation(org.apache.wicket.model.IModel childModel, org.apache.wicket.model.IModel<String> message, FeedbackScope scope) throws ValidationException
      Create a Violation object with field and scope information.
      Parameters:
      childModel - the JcrPropertyValueModel or JcrNodeModel of the child Node
      message - model containing the message to be shown to the user
      scope - to indicate the level the validation applies to
      Throws:
      ValidationException - when information to validate is not available