My message.properties contains this by default:
typeMismatch.java.lang.Double=Property {0} must be a valid number
Placeholder {0} is replaced by the Attribute Name. I want to use the Label that is used for the frontend like this:
typeMismatch.java.lang.Double=Property {wonderful label here} must be a valid number.
My first Attempt:
typeMismatch.java.lang.Double=Property ${message(code:'0')} must be a valid number.
is not working cause there is no '0' message. Documentation is not clear at that point. Anyone got an idea for this one?
Edit:
Well i can write an error message for every Attribute like this:
typeMismatch.Book.booknumber = Property Booknumber must be a valid number.
But this seems like a lot of extra work...