java.lang.Object
de.agilecoders.wicket.jquery.CombinableConfig
de.agilecoders.wicket.jquery.AbstractConfig
de.agilecoders.wicket.extensions.markup.html.bootstrap.form.validation.AbstractValidationConfig
All Implemented Interfaces:
de.agilecoders.wicket.jquery.Config, Serializable, IClusterable
Direct Known Subclasses:
SimpleValidationConfig, TooltipValidationConfig

public abstract class AbstractValidationConfig extends de.agilecoders.wicket.jquery.AbstractConfig
Base configuration for validation behaviors. Config contains two parameters:

appendToParent flag - target for validation message. If appendToParent is set to true message will be append to input parent element in DOM. Otherwise message will be append to input element. By default appendToParent is false

errorClass - is css validation class which appends to parent element in DOM. By default uses bootstrap "is-invalid" class.

Since:
08.11.14
Author:
Alexey Volkov
See Also:
  • Constructor Details

    • AbstractValidationConfig

      protected AbstractValidationConfig()
      sets flag of append to parent to false
  • Method Details

    • appendToParent

      public AbstractValidationConfig appendToParent(boolean appendToParent)
      Parameters:
      appendToParent - appendToParent
      Returns:
      current instance
    • isAppendToParent

      public boolean isAppendToParent()
      Returns:
      append to parent flag
    • withErrorClass

      public AbstractValidationConfig withErrorClass(String errorClass)
      Parameters:
      errorClass - error class
      Returns:
      current instance
    • getErrorClass

      public String getErrorClass()
      Returns:
      error class