Tag Archives: validation

Announcing Grails Constraints Custom Domain Constraint Plugin

I’ve released my first public Grails Plugin today. The Grails Constraint plugin gives you the ability to create custom Constraints that you can apply to your Domain classes to validate them. These are applied and act just like the built … Continue reading

Posted in Code, Groovy | Tagged , , | 5 Comments

Password Strength Validation with Regular Expressions

Regular Expressions are both complex and elegant at the same time. They can be made to look like someone was just randomly hammering on their keyboard. They are also an incredibly efficient and elegant solution to describing the structure of … Continue reading

Posted in Code | Tagged , | 8 Comments

Grails Validations Based on Related Objects

Grails has a rich set of tools for performing validations of your domain objects. There are quite a few built in validations that you can use. These mainly resolve around validating single properties within a single domain object. It also … Continue reading

Posted in Groovy | Tagged , | Leave a comment

Custom Validators in Grails in a Single App

In my previous post I wrote about Building a Custom Validator in Grails using a Plugin. That’s a great way to build a reusable Constraint that will allow you to share your code among multiple projects. But often you only … Continue reading

Posted in Code, Groovy | Tagged , , | 3 Comments

Build a Custom Validator in Grails with a Plugin

Grails is a really nice MVC framework inspired by Ruby on Rails. The difference is that Grails is built using Groovy and Java and leverages existing, well known frameworks as it’s foundation. It is essentially a fairly thin convention-over-configuration and … Continue reading

Posted in Code, Groovy | Tagged , , , | 10 Comments