This is a variation of a question I posted a few days ago that didn't get
resolved, so please bear with me. It seems simple but I am not getting anywhere
with it.
I have a test page (TestCFC.cfm) that binds to a CFC (TestCFC2.cfm) that is in
the same directory. This used to work on CF8 but it doesn't on CF9. I keep
being told that "The specified CFC TestCFC2 could not be found."
I don't understand why it can't be found because the manual says that for bind
expressions, "The componentPath value must be a dot-delimited path from the web
root or the directory that contains the current page."
My calling page contains:
<cfform>
<cfselect name="oSLevel" bind="cfc:TestCFC2.GetRoles()" bindonload="true"
value="m" />
</cfform>
The CFC it calls is:
<cfcomponent>
<!--- Function to populate the Roles drop-down --->
<cffunction name="GetRoles" access="remote" returnType="array">
<cfset var result=ArrayNew(2)>
<cfset var i=2>
<cfset var item="">
<cfset result[1][1]="">
<cfset result[1][2]="-- Select --">
<cfset result[2][1]="m">
<cfset result[2][2]="person">
<cfreturn result>
</cffunction>
</cfcomponent>
Can anyone tell me what I am doing wrong? Or is this a CF9 bug?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335434
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm