org.wicketstuff.validation.client
Class AbstractClientAndServerValidatingBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
org.wicketstuff.validation.client.AbstractClientAndServerValidatingBehavior
- All Implemented Interfaces:
- Serializable, IClusterable
- Direct Known Subclasses:
- ClientAndServerExactLengthValidatingBehavior, ClientAndServerLengthBetweenValidatingBehavior, ClientAndServerMaximumLengthValidatingBehavior, ClientAndServerMinimumLengthValidatingBehavior, ClientAndServerRequiredValidatingBehavior
public abstract class AbstractClientAndServerValidatingBehavior
- extends Behavior
Abstract validating behavior that all ClientAndServer...Behaviors can extend to
provide the base functionality needed to validate on the client side where possible.
- 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 |
AbstractClientAndServerValidatingBehavior
public AbstractClientAndServerValidatingBehavior(Form<?> form)
bind
public final void bind(Component component)
- Overrides:
bind in class Behavior
checkComponentIsFormComponent
protected final void checkComponentIsFormComponent(Component component)
renderHead
public final void renderHead(Component c,
IHeaderResponse response)
- Overrides:
renderHead in class Behavior
jsEscape
protected final CharSequence jsEscape(CharSequence js)
createValidatorConstructorJavaScript
protected String createValidatorConstructorJavaScript(CharSequence formID,
CharSequence compID,
CharSequence escapedMessage)
getValidatorJSClassName
protected String getValidatorJSClassName()
variablesMap
protected Map<String,Object> variablesMap(Form<?> form,
FormComponent<?> component)
getResourceKey
protected String getResourceKey()
- Returns:
- the resource key where the 'failed' message for this validator can be found
addServerSideValidator
protected abstract void addServerSideValidator(FormComponent component)
Copyright © 2011. All Rights Reserved.