A good link about it :
http://cfguru.daemon.com.au/archives/000030.html

I personally like very much how <cfimport> works now.
(it is very similar to the JSP taglib mecanism, strange isn't it?...)

I don't use the old custom tag naming anymore (<cf_...>).
All my custom tags are in the "/WEB-INF/cftags" directory or somewhere
inside my application folder (for example : "/myapp/system/cftags").

The prefix system allows you to specify what kind of tag you are using, for
example :
- <ui:...> for user interface,
- <i18n:...> for internationalization,
..

It is excellent for code readability.

Benoit

-----Message d'origine-----
De : S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
Envoy� : mercredi 21 ao�t 2002 03:10
� : CF-Talk
Objet : RE: CFMX and Java Libraries


> Just for your information you can't put the <cfimport> in
> the
> application.cfm.
> You have to put it in each .cfm where you want to use it.

> And, you can't have overlapping name spaces because, each
> time you
> <cfimport> a taglib, you specify the corresponding tag
> prefix, you're going
> to use in the page.

> Ex. (from the CF doc) :
> <cfimport
>       prefix="myprefix"
>       taglib="/WEB-INF/lib/myjsptags.jar">

> <myprefix:helloTag message="Hello" />

So <cfimport prefix="cf" taglib="..."> would be okay as long as you didn't
specify cf twice and the corresponding tags in the page would have to be
<cf:mytag> instead of <cfmytag> ? ...

Feels crummy that they can't be included in the application.cfm ... I wonder
why that is...

I guess these would be my rude awakenings. :)

Isaac
Certified Advanced ColdFusion 5 Developer

www.turnkey.to
954-776-0046


______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to