public class EqualInputValidator extends AbstractFormValidator
Constructor and Description |
---|
EqualInputValidator(FormComponent<?> formComponent1,
FormComponent<?> formComponent2)
Construct.
|
Modifier and Type | Method and Description |
---|---|
FormComponent<?>[] |
getDependentFormComponents() |
void |
validate(Form<?> form)
This method is ran if all components returned by
IFormValidator.getDependentFormComponents() are valid. |
bind, error, error, error, error, resourceKey, variablesMap
afterRender, beforeRender, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onConfigure, onEvent, onException, onRemove, renderHead, unbind
public EqualInputValidator(FormComponent<?> formComponent1, FormComponent<?> formComponent2)
formComponent1
- a form componentformComponent2
- a form componentpublic FormComponent<?>[] getDependentFormComponents()
FormComponent
s that this validator depends onpublic void validate(Form<?> form)
IFormValidator
IFormValidator.getDependentFormComponents()
are valid.
To report validation error use
FormComponent.error(org.apache.wicket.validation.IValidationError)
by using any of
the dependent form components or extend from AbstractFormValidator and use its
AbstractFormValidator.error(FormComponent, String, java.util.Map)
method.
form
- form this validator is added toCopyright © 2006–2019 Apache Software Foundation. All rights reserved.