Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Problem with bind in a CFSELECT

New Here ,
Nov 19, 2009 Nov 19, 2009

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.

TOPICS
Getting started
422
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 20, 2009 Nov 20, 2009
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources