At the moment you can have a validator on a form, for example:
However, when you do this there is no way to retrieve messages individually, so if you have a form you cannot place errors next to the respective component. This is the most common use case on forms, so in my opinion is essential.
When adding the invalid message like this this.addInvalidMessage(ctx, "age must be over 1"); we have an additional argument for the key:
We can then therefore retrieve the error message next to our respective component, for example say we want to validate the age in an intbox.
Then in the zul file: