Hi, I have this in my Application.cfm
 
<cfset request.componentpath     = 'cafevie.CFCs.'>        <!--- Component Path --->
And I'm using this like this...
 
<cfcomponent displayname="UserInfoService.cfc">     
  <cfset cf_template = 'UserInfoService.cfc'>  
  <cfobject component="#request.componentpath#OnlineService" name="OnlineService">
  <cfobject component="#request.componentpath#ErrorHandling" name="ErrorHandling">
  <cfobject component="#request.componentpath#ReferenceService" name="ReferenceService">
 
....
</cfcomponent>
 
When I go to the Component Browser,  I got this error.... is someone know how can I resolved this problem!!
 
I really like the Component Browser and I don't want to hardcode the path of my CFCs.
 
Stef
 

Element COMPONENTPATH is undefined in REQUEST.

 
The error occurred in C:\CFusionMX\wwwroot\CafeVie\CFCs\ProfileService.cfc: line 30
Called from C:\CFusionMX\wwwroot\CafeVie\CFCs\ProfileService.cfc: line 1750
Called from C:\CFusionMX\wwwroot\CFIDE\componentutils\cfcexplorer.cfc: line 186
Called from C:\CFusionMX\wwwroot\CFIDE\componentutils\componentdetail.cfm: line 8
28 : 			 
29 : 	<cfset cf_template = 'UserInfoService.cfc'> 	<!--- This variable should always be included --->
30 :     <cfobject component="#request.componentpath#MessageService"   name="MessageService">
31 :     <cfobject component="#request.componentpath#OnlineService"    name="OnlineService">
32 :     <cfobject component="#request.componentpath#ValidateService"  name="ValidateService">

Reply via email to