> Is there any way for a component to 'know' where it was called from? From > what I know, the answer is no but I'm hoping I'm wrong. I have to write a > trace/debug for mach-ii and need to know what component was called, from > where, what was passed and what errors occurred (and were caught with a > try/catch).
I think you'd have to pass that information to the component. I suppose you could create a property in your component "camefrom" and then pass in cgi.script_name, the current component name or whatever you wanted to trace. If you have a bunch of components that need to have this ability, you might want to create a base class "trace", put the properties/getters/setters there, and have your components extend that class. -- Josh ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282843 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

