Skip to main content
Participant
November 19, 2009
Question

Problem with bind in a CFSELECT

  • November 19, 2009
  • 1 reply
  • 443 views

I am trying to get a CFSELECT to populate using bind.  If I use:


my bind works... somewhat. 

But if I use:

<CFSELECT bind="cfc:myCFC.file.getSizes({materialColor})">

</CFSELECT>

I get:

"The specified CFC myCFC.file could not be found.  The path to the CFC must be specified as a full path, or as a relative path from the current template, without the use of mappings."

The Coldfusion exception log says the same.  myCFC is setup as a mapping to the D:/wwwroot/CFC directory in Coldfusion Administrator.  I've tried putting the .cfc file in the same directory as the .cfm that calls it but I get the same error.  It seems no matter where I put it and tell Coldfusion to look for it, unless I use http: I get that error. 

I've tried using the cfdebug parameter on the page after enabling debugging in Administrator but it doesn't seem to do anything.

I'm using Coldfusion 9 Developer with Apache 2.2.14 and PHP 5.2.11. 

Thanks for the help.

This topic has been closed for replies.

1 reply

BKBK
Community Expert
Community Expert
November 20, 2009

What you describe should work. I only have doubts about D:/wwwroot/CFC.

I successfully tested with something like this:

1) Component: c:\Coldfusion9\wwwroot\CFC\file.cfc

2) In the mappings page Administrator

Logical path: /myCFC

Directory path: c:\Coldfusion9\wwwroot\CFC

3) <CFSELECT bind="cfc:myCFC.file.getSizes({materialColor})">

</CFSELECT