Yeah, that's definitely the case.  The path HAS to be specified per-file,
and is locked at compile time.  CF isn't doing anything special for you,
it's just letting you configure a base path to use on all the CFIMPORT tags
in a single place (the CF admin), so you don't have to specify it in every
tag.  The underlying mechanism is still exactly the same as before.

Cheers,
barneyb

> -----Original Message-----
> From: Matthew Walker [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 28, 2004 4:03 PM
> To: CF-Talk
> Subject: RE: Partitioning Custom Tags for multiple code lines?
>
> Sure you can. You just need to watch for one issue: the
> mapping seems to be
> replaced with a hard path at compile, so if you later change
> the mapping,
> compiled files will still address the old path. The solution
> seems to be to
> delete the class files.
>
>  
>
> -----Original Message-----
> From: Barney Boisvert [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 29 January 2004 11:34 a.m.
> To: CF-Talk
> Subject: RE: Partitioning Custom Tags for multiple code lines?
>
>  
>
> I thought with MX6.1 you could use mappings in your CFIMPORT
> tags.  I've
> never done it, but I thought it was on the feature list.
>
> Cheers,
> barneyb
>
> > -----Original Message-----
> > From: Tyler Clendenin [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, January 28, 2004 3:24 PM
> > To: CF-Talk
> > Subject: RE: Partitioning Custom Tags for multiple code lines?
> >
> > i personally don't mind having to reference it on the page
> > that is using it.
> > Most normal languages require each file to reference the
> > libraries it is
> > using.  what gets me with cfimport is that you cannot use dynamic
> > information in the taglib attribute.
> >  
> > eg.
> > none of this
> > <cfimport prefix="foo" taglib="#myRootPath#_import/foo/">
> >  
> > instead you have to be either absolute or relative which is
> > not so portable
> >  
> > <cfimport prefix="foo" taglib="../../_import/foo/">
> >  
> > if anyone knows ho maybe you can acomplish this sort of task
> > please post =)
> >  
> > Tyler Clendenin
> > GSL Solutions
>
>   _____  
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to