This is one of the biggest downfalls of ColdFusion: the inability to bind a
custom tag path to a particular application, and the resulting occluded
custom tag calls.

Look at the end of Plum help for "Deploying a Plum Application," and read
the part about our CF_2cfmodule utility.

If you are going to multihost on your own server, you can put all your Plum
custom tags into the common cfusionmx/customtags/ directory and let all
application use that one custom tag library.

The problem comes if you modify copies of any of the custom tags in separate
directories (defined as custom tag paths in CF Admin) while keeping their
names the same, which causes occluded calls.  Once a page finds a custom tag
by name using cf_mytag syntax, it compiles that path into the Java class
file created by ColdFusion Server and then always uses that version of the
custom tag whenever it runs that class file.

Using <cfmodule template="#Application.customtags#/mytag.cfm"> syntax
completely eliminates this problem by enabling you to explicitly path each
custom tag call to a specific location.  The problem is that you can't use
the custom tag editors, and the code is hard to read.  That's why we created
the CF_2cfmodule utility, so you can edit your code using cf_ syntax, then
convert a copy of it to cfmodule syntax, test it on your staging server, and
then deploy that version to your production server.

Until Macromedia takes a hint on mapping custom tag paths to applications,
that's the best that anyone has ever been able to do.  BTW, CF_2cfmodule
should also work on your non-Plum CF apps.

Respectfully,

Adam Phillip Churvis
Member of Team Macromedia
http://www.ProductivityEnhancement.com

Download Plum and other cool development tools,
and get advanced intensive Master-level training:

* C# & ASP.NET for ColdFusion Developers
* ColdFusion MX Master Class
* Advanced Development with CFMX and SQL Server 2000

----- Original Message ----- 
From: "Jim Canup" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, March 04, 2005 7:52 PM
Subject: RE: [plum] Checkbox on Login Page


> It appears as if my new project (sothumc) is looking at the custom tags
path
> I set up for the tutorial (PlumTutorials).
> I also set a custom tags path for the new project to
> C:\Inetpub\wwwroot\sothumc\customtags.
>
> Why the need for a custom tags path for each project and how does CF keep
> them straight?
>
> Jim
>
>
> ByteArray objects cannot be converted to strings.
>
>
> The error occurred in
> C:\Inetpub\wwwroot\PlumTutorials\customtags\Authorize.cfm: line
48[NL]Called
> from C:\Inetpub\wwwroot\PlumTutorials\customtags\DisplayContent.cfm: line
> 29[NL]Called from
> C:\Inetpub\wwwroot\sothumc\layouts\Standard\BodyHeader.cfm: line
> 11[NL]Called from C:\Inetpub\wwwroot\sothumc\layouts\Standard\Header.cfm:
> line 48[NL]Called from C:\Inetpub\wwwroot\sothumc\index.cfm: line 9
> 46 :
>
[TAB][TAB][TAB]Email="#Trim(Application.CookieAPI.GetCookie('Email'))#">[PAR
> A]47 : [PARA]48 : [TAB][TAB]<cfif UserQuery.RecordCount GT 0 AND
> UserQuery.Status EQ 10 AND Hash(UserQuery.LoginID) EQ
> Application.CookieAPI.GetCookie("LoginID")>[PARA]49 : [TAB][TAB][TAB]<!---
> If the user's email address was found, get his list of roles. --->[PARA]50
:
> [TAB][TAB][TAB]<cfinvoke
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Adam
> Churvis
> Sent: Friday, March 04, 2005 7:28 PM
> To: [email protected]
> Subject: Re: [plum] Checkbox on Login Page
>
> We've never seen this.
>
> Turn off exception handling (at the bottom of Environment.cfm) and re-run
> setup/Setup.cfm, then try again and email the complete error to
> [EMAIL PROTECTED]  We'll look at it this weekend and
get
> back to you all.
>
> Respectfully,
>
> Adam Phillip Churvis
> Member of Team Macromedia
> http://www.ProductivityEnhancement.com
>
> Download Plum and other cool development tools,
> and get advanced intensive Master-level training:
>
> * C# & ASP.NET for ColdFusion Developers
> * ColdFusion MX Master Class
> * Advanced Development with CFMX and SQL Server 2000
>
> ----- Original Message -----
> From: "Aaron Longnion - hotmail" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Friday, March 04, 2005 7:28 PM
> Subject: Re: [plum] Checkbox on Login Page
>
>
> I also get this.  It's on both CF 6.1 and 7, and IE 6 or Firefox 1.0.
>
> Thanks,
> Aaron
>
>
>   ----- Original Message -----
>   From: Jim Canup
>   To: Plum Discussion List
>   Sent: Friday, March 04, 2005 5:56 PM
>   Subject: [plum] Checkbox on Login Page
>
>
>   I am using the default Login page that is created with a new project.
> When I check the Remember Me Checkbox, I get the following error:
"ByteArray
> objects cannot be converted to strings." I am sure this has come up
before,
> but I cannot find the answer.
>
>
>
>   Thanks in advance,
>
>
>
>   Jim
>
>
> **********************************************************************
> You can subscribe to and unsubscribe from lists, and you can change
> your subscriptions between normal and digest modes here:
>
> http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
> **********************************************************************
>
>
> **********************************************************************
> You can subscribe to and unsubscribe from lists, and you can change
> your subscriptions between normal and digest modes here:
>
> http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
> **********************************************************************
>


**********************************************************************
You can subscribe to and unsubscribe from lists, and you can change
your subscriptions between normal and digest modes here:

http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
**********************************************************************

Reply via email to