So I'm confused - are you saying the only reason you don't want to use a persisted CFC is.... what? Why isn't this CFC (myPeeps) cached in the app scope? You could then make another CFC, just for AJAX purposes, that works with this app scoped CFC. I know that - in general - folks recommend against that, but for AJAX I think it makes sense. The CFC is simply acting as a proxy to your cached components.
On Wed, Jan 7, 2009 at 4:57 PM, Doug Smidt <[email protected]> wrote: > Sorry - I should have been more clear. I'm not necessarily referring to an > object (variable) in a shared scope, though I want that to be an option. I > also don't want to have to access a variable containing my CFC directly from > a shared scope inside of another CFC. > > A very basic, quick example of what I would like to be able to do. I have a > CFC called People. That CFC has a couple of queries in it; one to get people > and another to update a person. My Person CFC requires a Datasource object > be passed in via dependency injection to work. I create a variable called > called MyDatasource on a .cfm page, I create a variable called MyPeeps, then > I inject MyDatasource into MyPeeps. MyPeeps can get people from my database > and update a person in my database. > > My cfgrid tag has these attributes: > bind="cfc:somepath.People.getData({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})" > onchange="cfc:somepath.People.editData({cfgridaction},{cfgridrow},{cfgridchanged})" > > Instead of using "somepath.People", I'd like to use a variable I've created > containing my CFC (MyPeeps) instead of a path to a CFC. Similar to what you > can do with a CFINOVOKE tag. > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317568 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

