public class SizeTagModifier extends Object implements ITagModifier<javax.validation.constraints.Size>
maxlength
and minlength
attributes to the input
and textarea
tag with the max/min value from the Size
constraint annotation.Constructor and Description |
---|
SizeTagModifier() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
hasLengthAttribute(String tagName) |
void |
modify(FormComponent<?> component,
ComponentTag tag,
javax.validation.constraints.Size annotation)
Modify the tag
|
public void modify(FormComponent<?> component, ComponentTag tag, javax.validation.constraints.Size annotation)
ITagModifier
modify
in interface ITagModifier<javax.validation.constraints.Size>
component
- component the tag belongs totag
- markup tag to be modifiedannotation
- constraint annotationprotected boolean hasLengthAttribute(String tagName)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.