Peter, I'm back to the issue of how you validate non-string values with your process.  (I love your bean creator and how easy it generates these objects, BTW.)
 
Let's say you have two variables: firstName and birthDate.
 
firstName is a string, of course, but birthDate is a date type.  If you set "date" to the argument type in the setBirthDate, but pass it a non-date value, where do you handle the errors?
 
Do you, personally, type all your arguments as strings and then validate the data, or do you type them correctly, then wrap with try/catch blocks?
 
I hate to re-hash this, but it's been a while since it was last discussed and I was hoping for some newer experiences and thoughts on this topic.
 
M!ke


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter J. Farrell
Sent: Saturday, May 07, 2005 8:14 PM
To: [email protected]
Subject: Re: [CFCDev] Form Validation

Cliff Meyers wrote:
Jon Block's Bean Creator is a great tool for quickly generating the
CFC code for your bean:

http://cf2.jonathanblock.com/bean.cfm
  
Not plugging...FYI:

I have an updated version with some extra (free download without the ads there as well) that is based on Jon's Beaner at:
http://blog.maestropublishing.com/mach-ii_beaner.htm

Version 1.11
- Defaults in the init() arguments
- Automatic creation of the LTO (lightweight transfer objects)
- Paths
- Errors methods
- Populate bean from LTO
- Get LTO
- Optional creation notes

Plans for Version 2.0:
- CFForm (mx7) version as well and the current html/_javascript_
- Enhanced error handling CFC examples for validation() method
- Tradition TOs as well as the current LTOs
- Anything else...?
 
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

Reply via email to