Bind with CFSelect Not Showing Data
I have a CFC that I can access directly and get data. I am binding the cfc to a cfselect like so.
<cfform>
<cfselect name="category" bind="cfc:cfcs.menusdata.getData()" bindonload="true"></cfselect>
</cfform>
My cfc is located in a directory named cfcs at the application root. The name is menudata.cfc and the method is getData. I can access it fine by goign to the URL as so.
http://siteurl/cfcs/menudata.cfc?method=getData
It displays the data fine:
DinnerFridayMondaySaturdaySundayThursdayTuesdayWednesday
However when I try to look at the page the cfselect is on it shows me an empty drop down box with no selections. The function is just a simple query that return the records. Here is my cfc:
<cfcomponent>
<cffunction name="getData" access="remote" returntype="query" output="yes">
<cfset var q = "">
<cfquery name="q" datasource="ezpay">
select description
from service_descriptions
</cfquery>
<cfreturn q>
</cffunction>
</cfcomponent>
I have been banging my head against this one for a few days now so any outside eyes would be helpful. Anybody else run into this issue where the cfc works fine but does not appear to be binding to the cfselect for whatever reason? ColdFusion 8 is my server.
Many thanks.
-Brian
