Class SizeTagModifier

  • All Implemented Interfaces:
    ITagModifier<javax.validation.constraints.Size>

    public class SizeTagModifier
    extends Object
    implements ITagModifier<javax.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
    • Method Detail

      • modify

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