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

jquery function not returning html to second function

I am building a select in one function(2) then calling it in another function(1) where I pass the values needed to build the function and select the proper approver. Everything works except passing back the html to function(1). function(1) function…
Th0raxe
  • 86
  • 6
0
votes
1 answer

Accessing implicit setter/getter

I have a component with a couple property definitions and an init() method. I am able to access getUuid() but not getSandwich(). component output="false" accessors="true" { property name="uuid" type="string" default="" hint="The…
Jack Frost
  • 2,151
  • 3
  • 17
  • 21
0
votes
0 answers

Railo REST component has no access to application variables

I've been playing with the REST functionality in Railo 4, with limited success... I have two paths set up, the first works exactly as I'd expect but requests to the second seem to exist outside of the application... I have two mappings: /api and…
Gary Stanton
  • 1,435
  • 12
  • 28
0
votes
1 answer

Can I create a cfobject from a cfc file located on another server?

I have a ColdFusion problem and I hope you guys can help. We are trying (and playing around with) setting up a couple of code servers that will be used for handling AJAX calls. We would also like to have these servers hold global cfc's for the web…
jkw4703
  • 352
  • 3
  • 17
0
votes
1 answer

Staging my Coldfusion app when using CFC inheritance/extends

I have an application.cfc in a subdir of my webroot: /app/application.cfc I recently added another application.cfc in a subdir of that and it extends the original application.cfc using the proxy method described here…
DaveBurns
  • 2,036
  • 2
  • 27
  • 37
0
votes
1 answer

question about coldfusion displaying query result in a cfgrid

i have a coldfusion cfc and some methods in it. MethodA will return a cfquery object. now i use cfajaxproxy to call MethodA and get the query result in a cfm page. this cfm page already have a cfgrid there. now my question is how can i display the…
Just a learner
  • 26,690
  • 50
  • 155
  • 234
0
votes
1 answer

Coldfusion 10 invoke cfc error

Anyone have any idea on how to fix this? "Unable to invoke CFC - The value returned from the getAllContacts function is not of type Contacts[]. If the component name is specified as a return type, it is possible that either a definition file for…
jayron
  • 69
  • 7
0
votes
2 answers

How can I bind a button control to a cfc to toggle a boolean database value

I would like to able to bind a series of 3 buttons to toggle 3 boolean values on a database message entry. The boolean database entries are read|unread, actioned|pending, referral|message and the message entry has the unique key "messageID". I want…
Saul
  • 1,387
  • 5
  • 23
  • 45
0
votes
3 answers

Coldfusion: Need to disable or block "Error invoking CFC - server error" error pop-up message

I have a .cfm and .cfc that I am using to edit data in a cfgrid on the .cfm, and it works, however 10% of the time I will get the following error message: "Error invoking CFC /test/editCFgrid.cfc: Internal Server Error" I tried using the debugging…
Enchauva
  • 19
  • 5
0
votes
1 answer

Relative/Absolute CFC path in Open BlueDragon

I'm trying to migrate an existing ColdFusion codebase from Adobe CF8 to OpenBD. My files include something like this: /cfc/one.cfc /cfc/two.cfc /app/page.cfm In CF8 I had a mapping from 'cfc' to '/cfc', and in page.cfm I had:
Juffy
  • 1,220
  • 13
  • 22
0
votes
1 answer

Flex RemoteObject Source not found

Our flex project, which works fine in its current environment with coldfusion 7 single server. We moved this project to Coldfusion 8 multi server, and updated the remoteobject paths relative to the web root. The error we now receive is…
Chris Klepeis
  • 9,783
  • 16
  • 83
  • 149
0
votes
2 answers

Coldfusion mapping cfinclude

I am trying to use mappings for the first time and I am having some issues. In my CFadmin I created a mapping which goes like this: Logical Path: /email_sender Directory Path: E:\sites\Example.Com\cf_modules\autoresponders\Emails\emailLists I…
Geo
  • 3,160
  • 6
  • 41
  • 82
0
votes
3 answers

how to get url variable using jquery/javascript?

I would like to get URL request variables from a link and pass them to a CFC component. I already have working code (jQuery, AJAX, CFC) that will handle everything, but I just need to grab #URL.whatever# from a particular link. Within Coldfusion…
user1751287
  • 491
  • 9
  • 26
0
votes
1 answer

load 10 records per click cfc,ajax,jquery

I have a test code that works, at least partially, returning data from cfc using ajax call on click here is the code: