org.wicketstuff.validation.client
Class ClientAndServerRequiredValidatingBehavior

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by org.wicketstuff.validation.client.AbstractClientAndServerValidatingBehavior
          extended by org.wicketstuff.validation.client.ClientAndServerRequiredValidatingBehavior
All Implemented Interfaces:
Serializable, IClusterable

public class ClientAndServerRequiredValidatingBehavior
extends AbstractClientAndServerValidatingBehavior

Validates that the form component has a non-null, non-empty value.

Author:
Jeremy Thomerson
See Also:
Serialized Form

Constructor Summary
ClientAndServerRequiredValidatingBehavior(Form<?> form)
           
 
Method Summary
protected  void addServerSideValidator(FormComponent component)
           
protected  String getResourceKey()
           
protected  String getValidatorJSClassName()
           
 
Methods inherited from class org.wicketstuff.validation.client.AbstractClientAndServerValidatingBehavior
bind, checkComponentIsFormComponent, createValidatorConstructorJavaScript, jsEscape, renderHead, variablesMap
 
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
 

Constructor Detail

ClientAndServerRequiredValidatingBehavior

public ClientAndServerRequiredValidatingBehavior(Form<?> form)
Method Detail

addServerSideValidator

protected void addServerSideValidator(FormComponent component)
Specified by:
addServerSideValidator 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.