Monday November 23, 2009 7:45 PM
Word Count: 214
In the last post we took a look at how to get started using the Hyrule validation framework. In this tutorial we will take a look at what constraints are and how they are the backbone of what this framework is trying to accomplish.
A constraint is a type of check or validation on a property. In the example from my last article we provided a constraint for the first and last name. The not empty is just one of many constraints available to you. This constraint just checks to make sure the data set for this property is not empty.
[More]
Monday November 23, 2009 12:31 PM
Word Count: 154
A couple days ago I blogged about validation in ColdFusion 9. Today I would like to walk you through a quick start of using Hyrule. The first thing you need to do is head over to RIAForge and download the project.
The Hyrule validation frameowrk can be installed a couple different ways. The easiest is to just drop the hyrule folder in to your webroot. If you do not wish to do that you can always drop it anywhere on disk or even in your project somewhere and then just create a mapping to it. With per application mappings this is very easy.
[More]
Saturday November 21, 2009 4:09 PM
Word Count: 430
As I have blogged about in Part I and Part II data validation is just not where it needs to be yet. I think Adobe has taken a nice stab at it but until some things change your probably going to need to roll your own or use a framework that already exists. Before we look at some potential solutions I want to take a look at some examples from outside of the ColdFusion world.
In the Java world when you use Hibernate there is a built in validation framework called Hibernate Validator. In your model you setup your constraints using annotations.
In grails you can setup constraints pretty easily.
In python (django) you can setup your constraints when you declare the property.
[More]