Back to Blog
November 8, 2010·Chariot Solutions

Grails Validation Constraints Quick Ref

This is an excerpt from a blog post by Gordon Dickens, Chariot Architect and Trainer (via Technophile Blog)

After several iterations of Grails, we have to go to 17 (seventeen) pages to see all the validation constraints? I wanted to see them on one page.

Grails 1.3.5 – Validation Constraints

blank – To validate that a String value is not blank.

javascript
login(blank:false)

creditCard – To validate that a String value is a valid credit card number.

javascript
cardNumber(creditCard:true)

email – To validate that a String value is a valid email address.

Click here for the rest of the article.

Comments

Ready to transform your business?

We solve complex business problems with technology. Let's discuss how we can help you build, modernize, and grow.

Start A Conversation