org.apache.wicket.bean.validation
Class SizeTagModifier

java.lang.Object
  extended by 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 the maxlength attribute to the input tag with the max value from the Size constraint annotation.

Author:
igor

Constructor Summary
SizeTagModifier()
           
 
Method Summary
 void modify(FormComponent<?> component, ComponentTag tag, javax.validation.constraints.Size annotation)
          Modify the tag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface ITagModifier<javax.validation.constraints.Size>
Parameters:
component - component the tag belongs to
tag - markup tag to be modified
annotation - constraint annotation


Copyright © 2006–2016 Apache Software Foundation. All rights reserved.