In the messages.properties file in the Grails application, I saw examples of verification messages, for example:
User.password.size=Size of bar must be between {0} and {1}
which applies to
class User { String password static constraints = { password(size:5..15) } }
This example assumes that {0} is tied to the minimum size, and {1} is tied to the maximum size, but I can not find any documentation about which parameters can be used by error messages for each built-in restriction. In other words, I would like to know: for each built-in constraint, the value is {0} .... {n}
grails grails-validation
Dónal
source share