java.lang.Object
org.apache.wicket.bean.validation.SizeTagModifier
All Implemented Interfaces:
ITagModifier<jakarta.validation.constraints.Size>

public class SizeTagModifier extends Object implements ITagModifier<jakarta.validation.constraints.Size>
A tag modifier that adds the maxlength and minlength attributes to the input and textarea tag with the max/min value from the Size constraint annotation.
Author:
igor
  • Constructor Details

  • Method Details

    • modify

      public void modify(FormComponent<?> component, ComponentTag tag, jakarta.validation.constraints.Size annotation)
      Description copied from interface: ITagModifier
      Modify the tag
      Specified by:
      modify in interface ITagModifier<jakarta.validation.constraints.Size>
      Parameters:
      component - component the tag belongs to
      tag - markup tag to be modified
      annotation - constraint annotation
    • hasLengthAttribute

      protected boolean hasLengthAttribute(String tagName)