wicket.markup.html.form.validation
Class AbstractFormValidator

java.lang.Object
  extended by wicket.markup.html.form.validation.AbstractFormValidator
All Implemented Interfaces:
java.io.Serializable, IFormValidator
Direct Known Subclasses:
EqualInputValidator

public abstract class AbstractFormValidator
extends java.lang.Object
implements IFormValidator

Base class for IFormValidators.

Author:
Igor Vaynberg (ivaynberg)
See Also:
Serialized Form

Constructor Summary
AbstractFormValidator()
           
 
Method Summary
protected  java.util.Map messageModel()
          Gets the default variables for interpolation.
protected  java.lang.String resourceKey(FormComponent[] components)
          Gets the resource key for validator's error message from the ApplicationSettings class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface wicket.markup.html.form.validation.IFormValidator
getDependentFormComponents, validate
 

Constructor Detail

AbstractFormValidator

public AbstractFormValidator()
Method Detail

messageModel

protected java.util.Map messageModel()
Gets the default variables for interpolation. These are for every component:

Returns:
a map with the variables for interpolation

resourceKey

protected java.lang.String resourceKey(FormComponent[] components)
Gets the resource key for validator's error message from the ApplicationSettings class.

Parameters:
components - form components being validated
Returns:
the resource key based on the form component


Copyright © 2004-2008 Wicket developers. All Rights Reserved.