Mapping in application.cfc:
<cfinclude template="/lib/lib.cfm" /> <!--- Works --->
<cfimport taglib="/lib/yform" prefix="yform3" /> <!--- Fails --->Is this a normal behaviour? If yes, please explain the difference.
Is there anything you haven't written an article about?? Seriously!
From my point of view this is a bug. I think the setting in the application.cfc should work like in the admin. Especially when the admin is telling me "take this code snippet and put it in your application.cfc".
Best, Michi
--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAOPrabWVSHL03ciNe%3D41tq7B1Mtxttg0m9ajigso7%2BV__bNkag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Is there anything you haven't written an article about?? Seriously!
From my point of view this is a bug. I think the setting in the application.cfc should work like in the admin. Especially when the admin is telling me "take this code snippet and put it in your application.cfc".
My understanding ( from Sean Corfield ) is that cfimport is a compile time directive, but application.cfc mappings are runtime. Hence you can not cfimport a tag based on a application.cfc mapping.
Mappings in Web or server admin are known when your template is compiled, so they work ok
This should probably be clarified in the docs for mappings (do they exist?) and cfimport.
--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/693c1097-d1b3-4606-a108-4f94e18615a8%40googlegroups.com.
My understanding ( from Sean Corfield ) is that cfimport is a compile time directive, but application.cfc mappings are runtime. Hence you can not cfimport a tag based on a application.cfc mapping.
In his lunchtime Adam wrote a whole article on my mapping issue: http://blog.adamcameron.me/2015/05/lucee-cfml-import-and-application-set.html
I raised a Feature-Request in Jira for that: https://luceeserver.atlassian.net/browse/LDEV-355
Best,
Michi
Von: lu...@googlegroups.com [mailto:lu...@googlegroups.com] Im Auftrag von Adam Cameron
Gesendet: Montag, 18. Mai 2015 10:15
An: lu...@googlegroups.com
Betreff: Re: [Lucee] mapping in application.cfc vs. web-admin
--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/4d503884-39f6-417b-9d5c-714f8d0c23ed%40googlegroups.com.
On Monday, 18 May 2015 08:59:31 UTC+1, Chris Blackwell wrote:My understanding ( from Sean Corfield ) is that cfimport is a compile time directive, but application.cfc mappings are runtime. Hence you can not cfimport a tag based on a application.cfc mapping.
Yeah, I'm not so sure about that being true.If one changes the location of a mapping in admin, then reuse a file which had previously leveraged that mapping, the change is reflected but the file is not recompiled.