Questions tagged [cfc]

ColdFusion Components (CFCs) are objects in the ColdFusion environment. They are a collection of functions and properties.

ColdFusion Components (CFCs) are objects in the environment.

A component method is invoked in the following ways:

  • In the <cfinvoke> tag (Transient objects)

  • In the <cfobject> tag

  • In a URL that calls a CFC file and passes a method name as a URL parameter

  • By using createobject() in <cfscript> or in <cfset>

  • via web services

  • From code

Unlike normal ColdFusion files, CFCs have a .cfc extension.

463 questions
5
votes
3 answers

AngularJS and ColdFusion CFCs

I'm trying to pick up AngularJS with a ColdFusion back end and am running into a few roadblocks. I am modifying their "To Do" app http://angularjs.org/ with the CF Art Gallery database. I'm trying to link a ColdFusion CFC to an Angular app using…
Chester
  • 1,081
  • 9
  • 18
5
votes
2 answers

Jquery not working with call to coldfusion cfc

I am new to jquery and am trying to make functions that will call and update my database with a dialog box. I modified an existing template to produce the code below and can't get the function savefee to be called by the jquery function. There are…
eduski
  • 179
  • 1
  • 1
  • 14
5
votes
2 answers

ColdFusion 9 Dynamic Method Call

I am trying to work out the correct syntax for calling a dynamic method within ColdFusion 9. I have tried a number of variations and had a good search around. is clearly the tag I want, sadly however I cannot use this within my…
AlexP
  • 9,906
  • 1
  • 24
  • 43
5
votes
3 answers

what is the difference between cfproperty tag defined variable and the variables scope variable in coldfusion?

What is the difference between cfproperty tag defined variable and the variables scope variable in ColdFusion? I have Java language experience, can you compare the ColdFusion cfproperty variable, variables scope variable to the Java instance…
user133580
  • 1,479
  • 1
  • 19
  • 28
5
votes
1 answer

cfc remote method result wrapped up in wddxpacket

When I return a string from my remote method from cfc. The returned string is wrapped up in a strange wddxpacket: I tried to turn off the debugging output like this: But it didn't work.
Adil Malik
  • 6,279
  • 7
  • 48
  • 77
4
votes
4 answers

Is there any difference between these ColdFusion components?

I know the result is the same but is there any real difference? Maybe speed or something? component { remote function getMath(){ math = 2 + 2; return math; } } or remote function getMath(){ …
Sequenzia
  • 2,333
  • 9
  • 40
  • 59
4
votes
1 answer

How can I send javascript object to a remote CFC Component

I have created a javascript object var spanglist = { one: q1, two:q2, three:q3, four: q4}; I create the ajax jquery object to send the data to the CFC: $.ajax({ url: 'gridly/components/pay.cfc', …
Michael BW
  • 1,070
  • 3
  • 13
  • 26
4
votes
3 answers

What's the best way to unit test a cfc that uses a Java object for a lot of its functionality?

I have a cfc that relies heavily on a Java object (created via JavaLoader) for a lot of its core functionality that I'd like to write some tests for and I'm not sure what the best way to do this is. Here is an example of a method I'd like to write a…
bittersweetryan
  • 3,383
  • 5
  • 28
  • 42
4
votes
1 answer

How to output CFC query results properly

I'm close on this one. I am calling a CFC to query some data: $.ajax({ dataType: 'json', data: { customer_name: $('##customer_name').val() }, url:…
Brian Fleishman
  • 1,237
  • 3
  • 21
  • 43
4
votes
1 answer

How can I send HTTP Status Code and a Response messages to the client in ColdFusion?

I am implementing the Single Sign On functionality. I have an ColdFusion application which takes input parameters from Java application (POST request). What I need to do is return status codes and a description to indicate whether the user has…
Vasu
  • 75
  • 1
  • 4
4
votes
1 answer

ColdFusion email settings with TLS

I am trying to configure ColdFusion to send emails using 1&1's servers (smtp.1and1.com) and even though I have set the username and password it keeps failing. This is what I've done so far: Set outgoing server to smtp.1and1.com set username and…
4
votes
2 answers

Calling CFC's on another folder level

I have a page that I use cfc's on. Like this: How do I call the cfc's if they are inside of a folder? As of right now they only work if they are on the same level…
David Brierton
  • 6,977
  • 12
  • 47
  • 104
4
votes
1 answer

Passing an array with jquery to a ColdFusion Component

Before I start, I am admittedly very new to jquery, in fact I had no javascript background as of 3 months ago. What I'm trying to accomplish is taking an array of information that I have available in jquery, and passing that array to a .cfc file…
Tim Howey
  • 145
  • 8
4
votes
1 answer

apllication.cfc does not fire any default cffunction? Coldfusion

Can anyone tell me what the problem is? I tried to run some .cfm files but it does not trigger any effect of cffunction except cfcomponent? Am I missing something? Can anyone explain to me?
De De De De
  • 326
  • 3
  • 10
  • 31
4
votes
2 answers

Can Coldfusion components share methods without being descendants of the same super class

We have used a homegrown version of object oriented coldfusion for a while and I'm just starting to experiment with cfc's and how it "should" be done... If I understand correctly, cfinterface defines the signature of functions, and any class that…
jessieloo
  • 1,759
  • 17
  • 24