Saved Bookmarks
| 1. |
What Is The Purpose Of @conversionerrorfieldvalidator Annotation? |
|
Answer» This VALIDATION ANNOTATION checks if there are any CONVERSION errors for a field and applies them if they EXIST. public class EMPLOYEE extends ActionSupport{ @ConversionErrorFieldValidator(message = "Default message", key = "i18n.key", shortCircuit = true) public String getName() { return name; } } This validation annotation checks if there are any conversion errors for a field and applies them if they exist. public class Employee extends ActionSupport{ @ConversionErrorFieldValidator(message = "Default message", key = "i18n.key", shortCircuit = true) public String getName() { return name; } } |
|