ValidatorCFC Update

Just a quick note, thanks again to Aaron Greenlee I have some small modifications to ValidatorCFC.

The modifications allow you to return a struct where the key is the name of the field in your object, and the value is true/false indicating if it passed validation.

This is useful if you prefer more control when showing informative messages to the user.

The zip file is attached to this entry as well as at RIAForge.

Quick Note

Just a quick note to say that the zip file on RiaForge for ValidatorCFC (http://validatorcfc.riaforge.org/) was incorrect. Thanks to Bill D (http://brainbox.tv) for the head's up.

I also attached it to this post. Use the download link below.

Update to ValidatorCFC

I released a new version of ValidatorCFC. Aaron Greenlee (http://www.aarongreenlee.com) sent me some changes. With his changes, you can now specify which properties you want validated. So even if in your object you say that last name and first name are required, if you pass in only the last name property, only that field will be validated. There is more info within the CFC itself, and in the test files in the zip. You can download the zip file using the download link on this entry, or from RIAForge.

ValidatorCFC

This component validates the data in an object according to custom rules you set up. It is especially created to determine data validity for a data store (DBMS, etc) rather than for business rules, but you can set up your own complex rules. Some may be out of its scope, however.

I just uploaded version 0.1.000. It is very much a work in progress and I welcome feedback.

Take a look and let me know what you think. You can find it at http://validatorCFC.riaforge.org or at the download link below.

Here is a rundown of an example usage:

[More]