|
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 ---------------------------------------------------------- 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] |
- RE: [CFCDev] Form Validation Dawson, Michael
- Re: [CFCDev] Form Validation Peter J. Farrell
- RE: [CFCDev] Form Validation Dawson, Michael
- RE: [CFCDev] Form Validation Roland Collins
- RE: [CFCDev] Form Validation Ung, Seng
- RE: [CFCDev] Form Validation Dawson, Michael
- RE: [CFCDev] Form Validation Dawson, Michael
