In a middle sized application there may be hundreds of required fields, and maybe dozens of some other validator type, which are all very verbose to define.
For instance: guess a big form with many required fields:
This is repeating the same pattern for both defining the validator and the corresponding message.
It would be great to have an abbreviated syntax, for instance (pseudo-language):
and 'global_validation_messages.properties' having
Not only "required" validator, but any other one.
1. Message is defined once. It is easy to uniformly change 'Field is required' to 'Please, fill this field".
2. Define affected fields all in a row. If my form has 10 required field, then 10 validation definitions are currently needed. With this improvement, only 1 definition is needed.