>One thing that may help you is the ability to create CFCs from an absolute
>path.  A UDF to do that would look something like:
>
>function makeCFC(path){
>var proxy = createObject("java","coldfusion.runtime.TemplateProxyFactory");
>var fileObject = createObject("java","java.io.File");
>fileObject.init(arguments.path);
>return proxy.resolveFile(getPageContext(), fileObject);
>}

As a side note, on my blog I have a component UDF that will working in CFMX
v6 & v6.1 as the TemplateProxy is in different places for the two versions
of CFMX. My UDF will also except either the standard createObject() notation
or a relative path:

http://blog.pengoworks.com/blogger/index.cfm?action=blog:10

- Dan

........................................
: Dan G. Switzer, II������������������ :
: e-mail:� [EMAIL PROTECTED] :
: url:���� http://www.pengoworks.com/� :
: blog:��� http://blog.pengoworks.com/ :
:���� _ ������� ������� �������������� :
:��� |_) _� _� _� _ |� | _� _|_� _���� :
:��� |� (/_| )(_|(_)|/\|(_)| |\ _)���� :
:������������� _|��������������������� :
:.......................................


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to