Top "Grails-validation" questions

Grails domain class: unique constraint for multiple columns

Suppose a simple Grails domain class: class Account { String countryId; String userName; String password; static constraints = { ...???... } } It is required that …

grails orm unique-constraint grails-domain-class grails-validation
Grails Problem with custom error messages

I am currently trying to specify custom error messages in grails for the default constraints but so far all I …

grails groovy grails-plugin grails-validation
Grails conditional nullable validation or custom validator with nullable option

I have a form to create a place. Depending of the country, the province (state, region) field is required or …

grails grails-domain-class grails-2.0 grails-validation
How can I override the default error message in Grails?

I have a Person object with a lastName field. The lastName field cannot be blank. When the user submits a …

grails grails-validation
Displaying Grails Field Errors

Does anybody know how I could get the fieldError to print out in the example below. for each item with …

grails error-handling grails-validation
Grails Command Objects custom Validate Message Codes

When using command objects like: class UserCommand { String name static constraints = { name blank: false, unique: true, minSize: 3 } } you can use …

validation grails grails-2.0 grails-domain-class grails-validation
Grails custom validator for domain class

I have a restriction so there could be no more than ConfigurationHolder.config.support.reminder.web.person.max object stored. …

grails grails-domain-class grails-validation