Posted At : November 14, 2008 10:21 PM
| Posted By : Bob Silverberg
Related Categories:
ColdFusion,ValidateThis!
While working on a very cool update to my object oriented validation framework for ColdFusion I discovered that my last update introduced an error. This error caused the online demo to not report certain server side validation failures and also had repercussions for the required server side validation type.
So, if you visited the demo page and thought, "What's up with this guy? This thing doesn't work at all!", or if you've downloaded the code from RIAForge recently, you may want to check out the demo and/or redownload. The problem has been fixed in both locations.
Note to self - more unit tests are needed!
P.S. I hope to blog about the cool new changes in the very near future.
Posted At : November 9, 2008 10:30 PM
| Posted By : Bob Silverberg
Related Categories:
ColdFusion,ValidateThis!,OO Design
I'm excited to say that the Google group that I set up as a discussion forum for my object oriented validation framework for ColdFusion has received its first post. And it was a doozy. Some really great ideas, and I, in my usual fashion, posted a response of an appropriate length ;-)
So I'd like to invite anyone interested in becoming part of the conversation, or interested in just listening in, to join the group. I'm not necessarily going to blog about everything that comes up in the group, and judging by this first post/response, there is bound to be some pretty interesting stuff going on.
For anyone who's interested but doesn't want to add yet another source of email to their inbox, I can confidently say that the volume of traffic will be negligible. And first post moderation is active, so spam should be pretty much non existent.
Click here to join the party.
Posted At : November 9, 2008 8:06 PM
| Posted By : Bob Silverberg
Related Categories:
ColdFusion,ValidateThis!,OO Design
Just a note to say that Paul Marcotte has written an interesting blog post describing a ColdFusion component which is an implementation of a Factory Pattern. This component can be used to centralize creation of transient objects in your model. He has included a description of the usage of the component that he wrote (with a tiny bit of input from me), as well as a download of that component. I am using this Transient Factory inside my own validation framework and have found it to be very useful.
I believe the component will also be available on RIAForge in the not too distant future.
Posted At : November 6, 2008 10:55 PM
| Posted By : Bob Silverberg
Related Categories:
ColdFusion,ValidateThis!
I'd like to thank Adam (who didn't leave his URL) for bringing this omission in the requirements for the framework to my attention.
Because of the way the framework uses onMissingMethod, ColdFusion 8.0.1 is required - it will not work properly under 8.0. I was aware of this, but forgot to specify it in the requirements. I hope this hasn't inconvenienced anyone other than Adam.
He asked whether it was possible for me to make the framework backward compatible with CF 8.0, and while I'm sure it's possible I don't feel that it would be a worthwhile use of resources. If there are those out there who would be interested in using the framework but are currently limited to running on 8.0, please let me know. If the demand is there I would certainly consider seeing what I can do to make it work.
Posted At : October 29, 2008 11:53 AM
| Posted By : Bob Silverberg
Related Categories:
ColdFusion,ValidateThis!,OO Design
I'm going to continue my series about object oriented validations with ColdFusion by looking at the approach that I've taken to performing server side validations. I discussed the architecture for server side validations in a previous article, so now I want to get down to the nitty gritty of how the actual validations are performed, looking at the code involved.
I'm going to do this in the context of discussing how I added generic regex support to the framework. I want to thank Matt Quackenbush, my regex mentor, for helping me with the required syntax, and with an example for the demo application.
Because one of the design goals I had for the framework was the ability to add new validation types without having to touch any of the existing code, adding regex support was a piece of cake. Here's how I wanted this new regex validation type to work:
- A developer can create a validation rule for an object property of type regex.
- The developer can then either:
- Specify a single regex parameter, which will be used on both the client and the server.
- Specify both a clientregex and a serverregex parameter, which will be used accordingly. This will allow a developer to take advantage of ColdFusion regex syntax that would not be valid in JavaScript.
- When processing validations, either on the client or the server, the contents of the specified property will be tested against the specified regex, and if no match is found the validation will fail.
[More]
Posted At : October 27, 2008 9:06 AM
| Posted By : Bob Silverberg
Related Categories:
ColdFusion,ValidateThis!,OO Design
I have made the code for my object oriented validation framework for ColdFusion available on RIAForge.
The download includes a demo application and set-up instructions. One should be able to get the demo up and running on one's machine in fairly short order. The set-up instructions also include some fairly detailed documentation about integrating the framework with an existing model, which I won't repeat here. I may write some posts about it in the future, but for now, if you're interested, just download the code, take it for a spin, and take a peek under the hood. The code base itself is actually fairly straightforward.
You may recall, if you've read my previous posts on the subject, that this project started out as a proof-of-concept for an object oriented approach to validations. I'm pretty happy with the product that resulted from this exercise, but there is definitely room for improvement and enhancement. I'm very keen to hear from anyone that checks it out and attempts to use it, and I'm willing to help anyone who runs into difficulty getting the demo up and running, or has questions about integrating the framework into an existing model.
Feel free to email me directly or use the google group (groups.google.com/group/validatethis) that I set up to facilitate more of a "conversation".
Posted At : October 21, 2008 8:56 AM
| Posted By : Bob Silverberg
Related Categories:
ColdFusion,ValidateThis!,OO Design
In this installment of my series about object oriented validations with ColdFusion I'm going to finish the discussion of the architecture of the framework. In a previous article I discussed that because the framework is used to generate both client-side and server-side validations, there are three categories of objects:
- Core Objects, which are used for both client-side and server-side validations.
- Server Objects, which are used only when performing server-side validations.
- Client Objects, which are used only when generating client-side validation code.
That article described the Core Objects and the Server Objects, so that just leaves the Client Objects.
[More]
More Entries