An update:  This does work if I use the following syntax:
bind="url:/com/myapp/www/DAOs/userDAO.CFC?method=getAllUsers&etc...

I never did figure out how to use the "cfc:" syntax since Ajax calls that CF 
created kept looking in the root folder for the CFC.

I would still like someone to explain that one to me.

~Brad

----- Original Message ----- 
From: "Brad Wood" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Saturday, September 06, 2008 12:42 PM
Subject: cfgrid bind component path not working


>I experimenting with binding an HTML cfgrid to a CFC and I'm having 
>troubles.
>
> <cfgrid format="html" name="grd_list_users" 
> bind="cfc:com.myapp.www.DAOs.userDAO.getAllUsers({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})">
>
> The cfc is web-accessible in the following path: 
> www.myserver.com/com/myapp/www/DAOs/userDAO.cfc
>
> The docs say: "The componentPath value must be a dot-delimited path from 
> the web root or the directory that contains the current page."
>
> However, when the page loads, I get this error in my cfdebug window:
> http: Error invoking CFC /userDAO.cfc : Not Found
>
> ColdFusion seems to just be chopping off all those directories and simply 
> looking for the CFC in the web root.  Why the heck would it do that?
>
> I can't find anything in the docs that explain it, and what is killing me 
> is EVERY single example I can find always just uses the cfc in the web 
> root, or in the same location as the main file.  It's the curse of the 
> abundance of over-simplified examples...  I must be missing something 
> obvious.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312135
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to