This is the primary reason Farcry needs a cfmapping to work.
it's a bit of a pain, but cfimport is too damn useful to not use it just because of this little snag... like Mark said, the ability to package up libraries of common functions like display logic, business logic or whatever is so much better for application structure it's not funny.
I just can't go back to developing the old pre CFMX way... cfimport + cfcs have completely changed everything. And it's oh so good...
Collins, Steve wrote:
I'm setting up a new application, and want to cfimport a custom tag library thus:
<!--- import visuals custom tag library --->
<cfset strTagPath="/includes/#application.SNLCNS#/customtags/visuals/"> <cfimport taglib="#strTagPath#" prefix="layout" />
<layout:renderpage> #request.content# </layout:renderpage>
So, application.SNLCNS is a dynamically set path name, which gets included in the value strTagPath, which is then used as the taglib value in the cfimport. Apparently this isn't allowed, as I get the following:
Message This expression must have a constant value. Detail The CFML compiler was processing:
* a cfimport tag beginning on line 19, column 2.
I can't imagine why this should be the case. Surely any number of applications have dynamic tag library locations like this. Any views or ideas. I'm sort of resigned to setting this non-dynamically, but that would be disappointing.
Steve
--
Stephen Collins
Web Development Section
eBusiness Division
__________________________________________________
Department of Industry, Tourism and Resources Level 12, 20 Allara Street, Canberra City ACT 2600
GPO Box 9839, Canberra ACT 2601
E [EMAIL PROTECTED] P +61 2 62137193 C +61 410 680722 F +61 2 62136227
********************************************************************** The information contained in this e-mail, and any attachments to it, is intended for the use of the addressee and is confidential. If you are not the intended recipient you must not use, disclose, read, forward, copy or retain any of the information. If you have received this e-mail in error, please delete it and notify the sender by return e-mail or telephone. The Commonwealth does not warrant that any attachments are free from viruses or any other defects. You assume all liability for any loss, damage or other consequences which may arise from opening or using the attachments. ***********************************************************************************
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
