Re: CFC and Form Variables Question

2008-11-02 Thread Rick Faircloth
Thanks for the info, Dominic!

Rick

Dominic Watson wrote:
> If you ever build a facebook application with ColdFusion you will run
> into this exact same problem. Basically, Facebook send a post request
> to your server which always breaks because there are two important
> fields called FB_SIG_TIME and FB_SIG. ColdFusion tries to validate
> FB_SIG as a time field, which it is not, and so a 500 is thrown.
> Classic eh.
>
> I believe that Mr Camden is using the Facebook case to suggest to the
> CF devs that they make this feature optional through the
> Administrator; I may be wrong though.
>
> Dominic
>
>
>   

~|
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:314759
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFC and Form Variables Question

2008-11-02 Thread Dominic Watson
If you ever build a facebook application with ColdFusion you will run
into this exact same problem. Basically, Facebook send a post request
to your server which always breaks because there are two important
fields called FB_SIG_TIME and FB_SIG. ColdFusion tries to validate
FB_SIG as a time field, which it is not, and so a 500 is thrown.
Classic eh.

I believe that Mr Camden is using the Facebook case to suggest to the
CF devs that they make this feature optional through the
Administrator; I may be wrong though.

Dominic

~|
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:314758
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFC and Form Variables Question

2008-11-02 Thread Rick Faircloth
Thanks for the info, Dave.  I guess I've just not used the right (or wrong)
variable names to trigger that auto-validation.  I recall seeing it 
now...just never
made use of it, preferring to write my own.  But I'll look into it.  It 
may make
validation easier for many types of data.

Rick

Dave Watts wrote:
>>> I don't think that's exactly it. There are a bunch of automatic
>>> validation suffixes, like "_date" and "_time" which trigger built-in
>>> CF form validation. Typically, they're used by adding hidden form
>>> fields to your form, and naming those fields using the names of the
>>> fields to be validated and the appropriate validation suffix:
>>>
>>> 
>>> 
>>>   
>> But I'm using , not .  Would that cause CF validation
>> to be triggered, as well?
>> 
>
> Yes. This built-in validation functionality predates the CFFORM tag.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
>
>   

~|
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:314757
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFC and Form Variables Question

2008-11-02 Thread Dave Watts
>> I don't think that's exactly it. There are a bunch of automatic
>> validation suffixes, like "_date" and "_time" which trigger built-in
>> CF form validation. Typically, they're used by adding hidden form
>> fields to your form, and naming those fields using the names of the
>> fields to be validated and the appropriate validation suffix:
>>
>> 
>> 
>
> But I'm using , not .  Would that cause CF validation
> to be triggered, as well?

Yes. This built-in validation functionality predates the CFFORM tag.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
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:314756
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFC and Form Variables Question

2008-11-02 Thread Rick Faircloth
But I'm using , not .  Would that cause CF validation
to be triggered, as well?

Rick

Dave Watts wrote:
>> It seems that CF didn't like having variables named with two underscores
>> in them.
>>
>> I had these four field names that were causing problems.
>>
>> - home_phone
>> - home_phone_time
>> - work_phone
>> - work_phone_time
>>
>> Once I changed them to...
>>
>> - home_phone
>> - home_calltime
>> - work_phone
>> - work_calltime
>>
>> everything began to run as expected.
>> 
>
> I don't think that's exactly it. There are a bunch of automatic
> validation suffixes, like "_date" and "_time" which trigger built-in
> CF form validation. Typically, they're used by adding hidden form
> fields to your form, and naming those fields using the names of the
> fields to be validated and the appropriate validation suffix:
>
> 
> 
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
>
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
>
>   

~|
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:314755
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF equivalent to PHP pack() function

2008-11-02 Thread Dave Watts
> and this isn't a CF equivalent, it's a javascript equivalent.

That's not JavaScript, it's Java, which can be run from within a CF
page with a bit of effort.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
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:314754
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFC and Form Variables Question

2008-11-02 Thread Dave Watts
> It seems that CF didn't like having variables named with two underscores
> in them.
>
> I had these four field names that were causing problems.
>
> - home_phone
> - home_phone_time
> - work_phone
> - work_phone_time
>
> Once I changed them to...
>
> - home_phone
> - home_calltime
> - work_phone
> - work_calltime
>
> everything began to run as expected.

I don't think that's exactly it. There are a bunch of automatic
validation suffixes, like "_date" and "_time" which trigger built-in
CF form validation. Typically, they're used by adding hidden form
fields to your form, and naming those fields using the names of the
fields to be validated and the appropriate validation suffix:




Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
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:314753
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFEclipse & Eclipse Ganymede?

2008-11-02 Thread Gerald Guido
I *just* installed CFEclipse on Ganymede 5 min ago. When you go to install
it uncheck everything *except*
CF Frameworks explorer
CF unit
CFEclipse 1.3.1.6

This just installed fine on Vista.

Another option is to go to:
http://yoxos.com/ondemand/

This AMAZING site will build eclipse and work out all of the dependencies
for you. *Highly Recommended*.

HTH
G

On Sun, Nov 2, 2008 at 2:54 PM, Peter Boughton <[EMAIL PROTECTED]> wrote:

> >I've got to upgrade to Eclipse 3.4.x, but CFEclipse (which I also need)
> >isn't supported in Ganymede and won't install.
>
> You can run multiple copies of Eclipse independently.
>
> So install Ganymede separately and keep your Europa install until CFE is
> updated?
>
> 

~|
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:314752
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFC and Form Variables Question

2008-11-02 Thread Rick Faircloth
Well... I finally figured out what the problem was.

It seems that CF didn't like having variables named with two underscores 
in them.

I had these four field names that were causing problems.

- home_phone
- home_phone_time
- work_phone
- work_phone_time

Once I changed them to...

- home_phone
- home_calltime
- work_phone
- work_calltime

everything began to run as expected.

Man, what a waste of time that was!

Thanks for everyone's suggestions!

Rick



William Seiter wrote:
> There has to be some other process that is running to validate data in your
> fields.  If you change the error messages and then force the error to be
> shown, are you able to see those errors when you run the page?
>
> Change the error message of: 'Please enter your name.' to 'Please enter your
> full name.'
> Submit the form with the name area 'blank'.
> Check to see if you can view the new message or the old message (or neither
> one).
>
> Also, check to make sure that the error reporting you are experiencing isn't
> from a javascript being called on those other fields.
>
> William
>
> --
> William Seiter
> IT Web Developer / Consultant
>  
> Is your income limited by the red tape and paperwork?  Let SoftEx BackOffice
> help you.  They know how to take care of the 'busy work' of your contracts
> and let you focus on the 'WOW' factor.
> http://www.softexconsulting.com/backoffice.cfm
> ::-Original Message-
> ::From: Rick Faircloth [mailto:[EMAIL PROTECTED]
> ::Sent: Sunday, November 02, 2008 7:18 AM
> ::To: cf-talk
> ::Subject: Re: CFC and Form Variables Question
> ::
> ::Hi, Azadi, and thanks for the feedback.
> ::
> ::I tried every combination I could think of...modifying variables in
> ::the form_validation.cfc as well as the email_processing.cfc, but nothing
> ::changed.
> ::
> ::The fields throwing the errors aren't even involved in the validation
> ::in form_validation.cfc...
> ::
> ::I tried  before  ::structNew()>
> ::if that's what you meant, but that didn't help.
> ::
> ::I just can't figure out what is performing the validation and rejecting my
> ::field data.  Do CFC's perform some kind of validation inherently?
> ::
> ::Again, if I leave data out of the fields causing the problem, the form
> ::processes normally.
> ::
> ::Rick
> ::
> ::
> ::
> ::Azadi Saryev wrote:
> ::>  - you are not VAR'ing your cfc
> ::variables, so some var leaking/confusion may be going on...
> ::>
> ::> Azadi Saryev
> ::> Sabai-dee.com
> ::> http://www.sabai-dee.com/
> ::>
> ::>
> ::>
> ::> Rick Faircloth wrote:
> ::>
> ::>> Yeah, I know... I was trying not to get to deep into the code since it
> ::>> involves so many parts, but here' s shortened version:
> ::>>
> ::>>
> ::>>
> ::>
> ::>
> ::
> ::
>
> 

~|
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:314751
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFEclipse & Eclipse Ganymede?

2008-11-02 Thread Peter Boughton
>I've got to upgrade to Eclipse 3.4.x, but CFEclipse (which I also need)
>isn't supported in Ganymede and won't install.

You can run multiple copies of Eclipse independently.

So install Ganymede separately and keep your Europa install until CFE is 
updated? 

~|
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:314750
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CFC and Form Variables Question

2008-11-02 Thread William Seiter
There has to be some other process that is running to validate data in your
fields.  If you change the error messages and then force the error to be
shown, are you able to see those errors when you run the page?

Change the error message of: 'Please enter your name.' to 'Please enter your
full name.'
Submit the form with the name area 'blank'.
Check to see if you can view the new message or the old message (or neither
one).

Also, check to make sure that the error reporting you are experiencing isn't
from a javascript being called on those other fields.

William

--
William Seiter
IT Web Developer / Consultant
 
Is your income limited by the red tape and paperwork?  Let SoftEx BackOffice
help you.  They know how to take care of the 'busy work' of your contracts
and let you focus on the 'WOW' factor.
http://www.softexconsulting.com/backoffice.cfm
::-Original Message-
::From: Rick Faircloth [mailto:[EMAIL PROTECTED]
::Sent: Sunday, November 02, 2008 7:18 AM
::To: cf-talk
::Subject: Re: CFC and Form Variables Question
::
::Hi, Azadi, and thanks for the feedback.
::
::I tried every combination I could think of...modifying variables in
::the form_validation.cfc as well as the email_processing.cfc, but nothing
::changed.
::
::The fields throwing the errors aren't even involved in the validation
::in form_validation.cfc...
::
::I tried  before 
::if that's what you meant, but that didn't help.
::
::I just can't figure out what is performing the validation and rejecting my
::field data.  Do CFC's perform some kind of validation inherently?
::
::Again, if I leave data out of the fields causing the problem, the form
::processes normally.
::
::Rick
::
::
::
::Azadi Saryev wrote:
::>  - you are not VAR'ing your cfc
::variables, so some var leaking/confusion may be going on...
::>
::> Azadi Saryev
::> Sabai-dee.com
::> http://www.sabai-dee.com/
::>
::>
::>
::> Rick Faircloth wrote:
::>
::>> Yeah, I know... I was trying not to get to deep into the code since it
::>> involves so many parts, but here' s shortened version:
::>>
::>>
::>>
::>
::>
::
::

~|
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:314749
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFC and Form Variables Question

2008-11-02 Thread Rick Faircloth
Hi, Azadi, and thanks for the feedback.

I tried every combination I could think of...modifying variables in
the form_validation.cfc as well as the email_processing.cfc, but nothing
changed.

The fields throwing the errors aren't even involved in the validation
in form_validation.cfc...

I tried  before 
if that's what you meant, but that didn't help.

I just can't figure out what is performing the validation and rejecting my
field data.  Do CFC's perform some kind of validation inherently?

Again, if I leave data out of the fields causing the problem, the form
processes normally.

Rick



Azadi Saryev wrote:
>  - you are not VAR'ing your cfc variables, 
> so some var leaking/confusion may be going on...
>
> Azadi Saryev
> Sabai-dee.com
> http://www.sabai-dee.com/
>
>
>
> Rick Faircloth wrote:
>   
>> Yeah, I know... I was trying not to get to deep into the code since it
>> involves so many parts, but here' s shortened version:
>>   
>>
>> 
>
> 

~|
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:314748
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFC and Form Variables Question

2008-11-02 Thread Azadi Saryev
 - you are not VAR'ing your cfc variables, so 
some var leaking/confusion may be going on...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Rick Faircloth wrote:
> Yeah, I know... I was trying not to get to deep into the code since it
> involves so many parts, but here' s shortened version:
>   
>

~|
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:314747
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFC and Form Variables Question

2008-11-02 Thread Rick Faircloth
Yeah, I know... I was trying not to get to deep into the code since it
involves so many parts, but here' s shortened version:

-
cma.cfm (calling page)
-



 
  
 
  
 

 





When the page is submitted back to itself, this code kicks in:




   

   

   
 
   



-
form_validation.cfc
-


   



  

   

 

   
   
   
   

   
   



-
email_processing.cfc
-


   
 
 
   
 

   
The following Comparative Marketing Request was sent from the 
FortStewart.com website:

Date: #dateformat(now(), 'mmm d, ')#
Time: #timeformat(now(), 'h:mm tt')#

Name: #arguments.name#
Email Address: #arguments.email#

Home Phone: #arguments.home_phone#
Best time to call at home: #arguments.home_phone_time#

(etc)








The cfc's work fine when the home_phone, home_phone_time,
work_phone, and work_phone_time fields are left empty.

???

Thanks,

Rick






Adrian Lynch wrote:
> Kinda hard to tell you what's wrong without some code.
>
> Adrian
>
>
>   

~|
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:314746
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CFC and Form Variables Question

2008-11-02 Thread Adrian Lynch
Kinda hard to tell you what's wrong without some code.

Adrian

-Original Message-
From: Rick Faircloth
Sent: 02 November 2008 12:36
To: cf-talk
Subject: Re: CFC and Form Variables Question


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/


~|
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:314745
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFC and Form Variables Question

2008-11-02 Thread Rick Faircloth
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


RE: CFC and Form Variables Question

2008-11-02 Thread Adrian Lynch
"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:314743
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4