Example usage for Java org.apache.wicket.validation ValidationError fields, constructors, methods, implement or subclass
The text is from its open source code.
ValidationError() Constructs an empty error | |
ValidationError(IValidator> validator) Constructs a validation error with the validator's standard key. | |
ValidationError(String message) Constructs a validation error with the specified message. | |
ValidationError(IValidator> validator, String variation) Constructs a validation error with a variation of validator's standard key. |
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 | addKey(IValidator> validator) Shortcut for adding a standard message key which is the simple name of the validator' class |
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 If the variation is empty only the validator's simple class name is used |
Serializable | getErrorMessage(IErrorMessageSource messageSource) |
List | getKeys() Gets error keys |
Map | getVariables() Retrieves the variables map for this error. |
void | setKeys(List Sets error keys |
ValidationError | setMessage(String message) Sets message that will be used when no message could be located via message keys. |
ValidationError | setVariable(String name, Object value) Sets a key and value in the variables map for use in substitution. |
ValidationError | setVariables(Map Sets the variables map for this error. |