Package | Description |
---|---|
org.apache.wicket.bean.validation |
This package integrates bean validation framework into Wicket.
|
org.apache.wicket.markup.html.form |
HTML Forms and form components.
|
org.apache.wicket.validation |
This package provides interfaces for Wicket's
validation support.
|
Modifier and Type | Method and Description |
---|---|
<T> ValidationError |
DefaultViolationTranslator.convert(javax.validation.ConstraintViolation<T> violation) |
<T> ValidationError |
IViolationTranslator.convert(javax.validation.ConstraintViolation<T> violation)
Converts a
ConstraintViolation into a ValidationError |
Modifier and Type | Method and Description |
---|---|
protected ValidationError |
FormComponent.newValidationError(ConversionException cause)
This method is called, when the validation triggered by
FormComponent.convertInput()
failed with a ConversionException , to construct a ValidationError based on
the exception. |
Modifier and Type | Method and Description |
---|---|
ValidationError |
ValidationError.addKey(IValidator<?> validator)
Shortcut for adding a standard message key which is the simple name of the validator' class
|
ValidationError |
ValidationError.addKey(IValidator<?> validator,
String variation)
Shortcut for adding a standard message key variation which is the simple name of the
validator class followed by a dot and the variation
|
ValidationError |
ValidationError.addKey(String key)
Adds a key to the list of keys that will be tried against
IErrorMessageSource to
locate the error message string. |
ValidationError |
ValidationError.setMessage(String message)
Sets message that will be used when no message could be located via message keys.
|
ValidationError |
ValidationError.setVariable(String name,
Object value)
Sets a key and value in the variables map for use in substitution.
|
ValidationError |
ValidationError.setVariables(Map<String,Object> vars)
Sets the variables map for this error.
|
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.