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 themaxlengthandminlengthattributes to theinputandtextareatag with the max/min value from theSizeconstraint 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 booleanhasLengthAttribute(String tagName)voidmodify(org.apache.wicket.markup.html.form.FormComponent<?> component, org.apache.wicket.markup.ComponentTag tag, javax.validation.constraints.Size annotation)Modify the tag
-
-
-
Constructor Detail
-
SizeTagModifier
public SizeTagModifier()
-
-
Method Detail
-
modify
public void modify(org.apache.wicket.markup.html.form.FormComponent<?> component, org.apache.wicket.markup.ComponentTag tag, javax.validation.constraints.Size annotation)
Description copied from interface:ITagModifierModify the tag- Specified by:
modifyin 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)
-
-