wicket.markup.html.form.validation
Class EqualPasswordInputValidator

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

public class EqualPasswordInputValidator
extends EqualInputValidator

Validates that the input of two form components is identical. Errors are reported on the second form component with key 'EqualInputValidator' and the variables:

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

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

Constructor Detail

EqualPasswordInputValidator

public EqualPasswordInputValidator(FormComponent formComponent1,
                                   FormComponent formComponent2)
Construct.

Parameters:
formComponent1 -
formComponent2 -
Method Detail

resourceKey

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

Overrides:
resourceKey in class AbstractFormValidator
Parameters:
components - form components being validated
Returns:
the resource key based on the form component
See Also:
AbstractFormValidator.resourceKey(wicket.markup.html.form.FormComponent[])


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