> I have this in my app.cfc, like most everyone does I am sure... > > <cffunction name="onRequest" returnType="void"> > <cfargument name="thePage" type="string" required="true" /> > <cfinclude template="#arguments.thePage#" /> </cffunction> > > If I take it out, everything I had an issue with works as it > should, but then the CF app doesn't work. Put it back in a > nada on the flex and calling via url, but cf app works. Even > if I just leave the cffunction in and take out the arg and > include, nothing works.
As everyone's noted, you can't use this with web services or Flash Remoting. That said, most everyone does not do this. I'd recommend not doing it unless you have a specific postprocessing need. If you do need this for your HTML interface, the common way to deal with this is to have two Application.cfc files; one that doesn't define onRequest, and another that inherits from the first, and defines onRequest. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:5298 Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
