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
0
votes
1 answer

Coldfusion extended component missing parameters

I'm trying to get a CFC (webCFC) with a remote function to return an instance of a different CFC (objCFC). Here are the CFCs: #webCFC component { remote function displayCFC(version=1) { if(version==1) { return new…
Pete
  • 4,542
  • 9
  • 43
  • 76
0
votes
1 answer

How do I programmatically generate Coldfusion ORM Entities and Properties

Let us say that I want to use Coldfusion's Hibernate ORM. But I don't want to write the CFC's for each object, I have a configuration file which details my schema. I want to parse that configuration file and generate the ORM dynamically. Or, what…
Tyler Clendenin
  • 1,459
  • 1
  • 12
  • 25
0
votes
1 answer

Can CFTHREAD be used for LDAP housekeeping?

Can I keep two records in LDAP in sync using CFTHREAD? I need to check if a record is still valid by looking up a cn elsewhere. So if it is invalid I want to delete it. This means getting all current records of the type I want, deleting them all…
0
votes
1 answer

What is the security or performance risk in including all of UDF's on every page request in ColdFusion?

I currently have my model and controller cfc's extend a cfc, via a Proxy component, that has all my functions. This makes all those UDF's available everywhere in the app. Are there security or performance risks in doing this? I use my models in an…
JamesRLamar
  • 908
  • 1
  • 11
  • 22
0
votes
2 answers

How To Share Query Data Between Two ColdFusion CFCs?

I am creating a CFC called "core_appdata". This CFC will hold the core stored procedures for an application. Example....
0
votes
3 answers

Problems sending arguments to CFC

I am having trouble passing an argument: I am getting an error with that last argument, saying "Element title2 is undefined in a Java object of type class…
aceslowman
  • 621
  • 13
  • 28
0
votes
4 answers

How to pass a struct to Coldfusion CFC using CFINVOKE?

I have a CFC file which handles all of the emails I'm sending form an application (using Coldfusion8). I was using CFINVOKE to call the respective function inside this CFC and passed a struct with all user data along like so: var…
frequent
  • 27,643
  • 59
  • 181
  • 333
0
votes
2 answers

How can I param form fields with a 15-digit dynamic ID inside a Coldfusion CFC?

I have a shopping basket which labels hidden inputs with an id based on a database record. So the input might look like this: where "12345678" is the id of a record in the basket. I'm submitting…
frequent
  • 27,643
  • 59
  • 181
  • 333
0
votes
2 answers

Selecting specific joined record from findAll() with a hasMany() include

(I tried posting this to the CFWheels Google Group (twice), but for some reason my message never appears. Is that list moderated?) Here's my problem: I'm working on a social networking app in CF on Wheels, not too dissimilar from the one we're all…
Brian D
  • 833
  • 7
  • 11
0
votes
2 answers

sum the fields of the bind inside a form, from cfc

I need to calculate the total of an invoice. This invoice is created with a form, amount, quantity and tax fields, the sum of the fields is made with a bind in cfinput. I can not make the sum of all rows, the total. I tried some operations, but not…
0
votes
1 answer

Is it possible to call a Coldfusion cfc method from within .htaccess?

I'm calling a cfm file form htaccess to perform some manipulation on images like so: Options +FollowSymlinks RewriteEngine On ... RewriteRule \.(jpg|jpeg|gif|png)…
frequent
  • 27,643
  • 59
  • 181
  • 333
0
votes
2 answers

Cfimage inside a CFC

I seem to be having an issue manipulating photos from within my CFC. I get an error that says that it encountered an exception while trying to read the image. So the question is pretty straightforward, are there any issues with manipulating files…
aceslowman
  • 621
  • 13
  • 28
0
votes
1 answer

Key in JSON not defined when passed to a CFC

I am passing a CFC a JSON, and there is a key that may or may not exist. So, I am checking it with isDefined, but for whatever reason, coldfusion doesn't think it exists, when, from what I'm seeing it clearly does. I have tried everything I can…
Rob M
  • 1,007
  • 2
  • 17
  • 38
0
votes
1 answer

Displaying "no records found" alert from inside a CFC

In CF9 with IE8 I have a cfgrid that is bound to a text (search) field as well as a cfc function. The text field value is used as a query filter within the cfc function. If any results are found, the grid gets populated. Otherwise, I would like to…
ion
  • 51
  • 1
  • 7
0
votes
2 answers

Railo error when trying to use CFC via AJAX

I have been unable to get Railo to work with a new CFC on a test page and keep getting a "Railo is not defined" in the Error Console The Error Console highlights this section: var _Railo_proxytest =…
user1009749
  • 63
  • 3
  • 8
1 2 3
30
31