Saturday, August 28, 2010

Grails custom constraints

Geoff Lane over at Zorched.net has a great post about creating your own custom constraints for validation in Grails. While I didn't take the same exact route as he outlined (I didn't create a plug-in) it was amazing how quickly and easily you can add custom constraints to Grails.

I also happened to notice that AbstractConstraint allows for some additional options, such as vetoing which could come in handy if you want to take a "fail fast" approach to constraint violations.

So head over there, and read up!

No comments:

Post a Comment