Do CFC's have some sort of internal validation routine associated with them?

I'm running my form data through the validation CFC and all checks out then
returns to the calling page and the email_processing CFC is called and I get
data formatting errors.  ???

For example, I have a text input for best time to call at home and I'm 
entering
the time as 10:00 am, which I've always done before, but now, I get:

"Form entries are incomplete or invalid"

10:00 am

Go back and correct the problem.

This is a regular text field with no validation from me, set to accept 
whatever
the user types in, even "Before 9am.".

When I remove 10:00 am to get past the error, I get an error for the 
home phone number,
913-878-3343, which again is a regular text field, with no validation by me.

"Form entries are incomplete or invalid."
"The value entered for the HOME_PHONE field ('913-878-3343') is not 
correctly formatted."

What's doing the validation?  The CFC?
That's not what I want...

Rick



Adrian Lynch wrote:
> "My conclusion was that CFCs treated as function libraries incurred
> unnecessary overhead while offering no additional benefit over a pre-CFC
> function library."
>
> Because you were creating the object each time? You could have cached it.
>
> Adrian
> Building a database of ColdFusion errors at http://cferror.org/
>
> -----Original Message-----
> From: Mike Chabot
> Sent: 02 November 2008 03:01
> To: cf-talk
> Subject: Re: CFC and Form Variables Question
>
>
> Regarding this.validate, I'm writing abstractly to refer to validating
> an object's data within the object as opposed to sending it out to a
> separate validation object. You won't find this in any manual.
>
> Back when CFCs first came out I extensively researched how best to
> handle function libraries since I was creating a very high profile,
> high traffic, mission critical Web application. I was trying to make
> use of CFCs extensively because I saw that as the direction CF was
> headed and it was the hot new feature. My conclusion was that CFCs
> treated as function libraries incurred unnecessary overhead while
> offering no additional benefit over a pre-CFC function library. With
> CF8 things are different in that CFCs in CF8 are much faster, plus
> they play nice with technologies such as AJAX and Flex.
>
> Going back to your original question, you can pass the form structure
> into a CFC function if you want to. It still seems strange to me, but
> many decisions in CF come down to personal preference.
>
> -Mike Chabot
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314744
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to