Class SizeTagModifier
- java.lang.Object
-
- org.apache.wicket.bean.validation.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 themaxlength
andminlength
attributes to theinput
andtextarea
tag with the max/min value from theSize
constraint annotation.- Author:
- igor
-
-
Field Summary
-
Fields inherited from interface org.apache.wicket.bean.validation.ITagModifier
NO_OP
-
-
Constructor Summary
Constructors Constructor Description SizeTagModifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
hasLengthAttribute(String tagName)
void
modify(FormComponent<?> component, ComponentTag tag, javax.validation.constraints.Size annotation)
Modify the tag
-
-
-
Constructor Detail
-
SizeTagModifier
public SizeTagModifier()
-
-
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 interfaceITagModifier<javax.validation.constraints.Size>
- Parameters:
component
- component the tag belongs totag
- markup tag to be modifiedannotation
- constraint annotation
-
hasLengthAttribute
protected boolean hasLengthAttribute(String tagName)
-
-