If I call a component with a fully qualified name as follows, how
would ColdFusion locate the component?

CreateObject("component", "com.companyname.myApp.myComponent");

I would presume that ColdFusion would search for the component in the
following order:

1. Locate a mapping for /com
1a. If found then locate directory companyname under /com
1aa. etc.
1b. If not found then goto step 2.
2. Locate a mapping for /com/companyname
3. Locate a mapping for /com/companyname/myApp
4. Search the Custom Tag Path with a a subdirectory of <<CustomTagPath>>/com

Would this be correct?

Thanks,
Troy


On 11/22/05, Dave Watts <[EMAIL PROTECTED]> wrote:
> > If I call a component without fully qualifing it, what would be the
> > expected outcome.  For example, if I call a component like this:
> >
> > CreateObject("component", "myComponent");
> >
> > And NOT like this:
> >
> > CreateObject("component", "myCFC.myComponent");
> >
> > How will the component be located?  Will ColdFusion search the
> > mappings or the CustomTag Path, or both?
>
> Neither. It will assume that myComponent.cfc is in the same directory as the
> calling page.
>
> 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!
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225108
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to