Grails Extra Validators
Dependency :
compile ":extra-validators:0.2"
Summary
Provides a bundle of extra validators for grails
Installation
grails install-plugin extra-validators
Description
Provides validators in addition to the grails default validators, currently:
To determine which country your postcode validates as, set it's parameter to the In the example above, the validator validates that the value of the field 'password' is equal (confirmed by) the value of the field 'passwordConfirmation'.
- Postcodes
- United Kingdom
- United States
- Canada
- Password confirmation
static constraints = {
postcode postalCode: PostalCountry.UK
}PostalCountry value of your choice (currently one of UK, US, CA).Password confirmation validationstatic constraints = {
password confirmedPassword: 'passwordConfirmation'
}