org.wicketstuff.validation.client
Class ClientAndServerLengthBetweenValidatingBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
org.wicketstuff.validation.client.AbstractClientAndServerValidatingBehavior
org.wicketstuff.validation.client.ClientAndServerLengthBetweenValidatingBehavior
- All Implemented Interfaces:
- Serializable, IClusterable
public class ClientAndServerLengthBetweenValidatingBehavior
- extends AbstractClientAndServerValidatingBehavior
Validates that the form component value has a length between the min and the max specified (inclusive).
- Author:
- Jeremy Thomerson
- See Also:
- Serialized Form
| Methods inherited from class org.apache.wicket.behavior.Behavior |
afterRender, beforeRender, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onConfigure, onException, unbind |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientAndServerLengthBetweenValidatingBehavior
public ClientAndServerLengthBetweenValidatingBehavior(Form<?> form,
int min,
int max)
addServerSideValidator
protected void addServerSideValidator(FormComponent component)
- Specified by:
addServerSideValidator in class AbstractClientAndServerValidatingBehavior
createValidatorConstructorJavaScript
protected String createValidatorConstructorJavaScript(CharSequence formID,
CharSequence compID,
CharSequence escapedMessage)
- Overrides:
createValidatorConstructorJavaScript in class AbstractClientAndServerValidatingBehavior
variablesMap
protected Map<String,Object> variablesMap(Form<?> form,
FormComponent<?> component)
- Overrides:
variablesMap in class AbstractClientAndServerValidatingBehavior
getResourceKey
protected String getResourceKey()
- Overrides:
getResourceKey in class AbstractClientAndServerValidatingBehavior
- Returns:
- the resource key where the 'failed' message for this validator can be found
getValidatorJSClassName
protected String getValidatorJSClassName()
- Overrides:
getValidatorJSClassName in class AbstractClientAndServerValidatingBehavior
Copyright © 2011. All Rights Reserved.