Photo from Chile

ValidateThis ColdBox Plugin Update

Thanks to John Whish, a bug in the ValidateThis ColdBox plugin has been fixed, so a new version is available at the RIAForge project site.

ValidateThis is a validation framework for ColdFusion objects that provides automatic server-side and client-side validations, plus a whole lot more. I have recently started using Git for version control for ValidateThis, and have moved the source code to GitHub. This made it extremely easy for John to create his bug fix and submit it to me for inclusion in the plugin. If anyone is interested in contributing to the project (either the plugin or the core), you can fork the corresponding Git repo from my GitHub page.

John and I are working on some sample code that will demonstrate the integration between ValidateThis and ColdBox, and which will be included in the RAIForge download in the near future.

If you are interested in learning more about ValidateThis, there are a number of resources available:

  • I recorded a presentation for the Online ColdFusion Meetup, which is available here.
  • The code for the framework, including a number of sample applications is available from the Riaforge Site,
  • A number of online demos can be viewed at
  • If you have any questions at all about the framework or how to implement and use it, they can be directed to the ValidateThis! Google Group at

Hi Bob, what specific bug in the plugin was fixed?

I have a few additions to ValidateThis I'd be interested in contributing - I just need to get sorted in github (and find some free time)!
# Posted By Craig | 11/11/09 3:36 PM
The bug was due to the fact that I was looking for a ColdBox setting that might not have existed. The fix was to simply check whether the setting existed prior to trying to access it.

Regarding contributions - that would be excellent!
# Posted By Bob Silverberg | 11/11/09 3:44 PM
I'm testing this out with the ColdBox plugin right now, and I was wondering if you could explain how to get the config settings into the ValidateThis ColdBox plugin? I see in the QuickStart guide, you init the variables as you create the persistent object, but in the ColdBox demo, you rely on the default JSRoot and definitionPath variables.

Is this be done in the coldbox.xml.cfm file, or each time you getMyPlugin("ValidateThisCBPlugin")?

Could you provide a persistent, best practices example?

# Posted By Thomas | 12/18/09 10:38 AM

Currently it is done via individual settings in your coldbox.xml.cfm file, although John Whish has submitted an enhancement to allow for a single setting of a structure, which I've been too lazy to release yet. ;-)

For now, the following settings are available to you:

VT_JSRoot, VT_definitionPath, VT_defaultFormName, VT_DefaultJSLib, VT_BOValidatorPath, VT_TranslatorPath, VT_LocaleLoaderPath, VT_localeMap, and VT_defaultLocale

The ones you'd probably be most interested in are VT_JSRoot and VT_definitionPath.

To set them you'd just add settings to your coldbox.xml.cfm file, like so:

   <Setting name="VT_JSRoot" value="library/js" />
   <Setting name="VT_definitionPath" value="/myModel" />
# Posted By Bob Silverberg | 12/18/09 1:17 PM