I understand how paired tags work, but apparently I wasn't clear enough in
describing what the symptom is...let me try to draw it out...
myFile.cfm
---> <cf_makeSomeFiles>
---> <cf_makeSomeHTML>
In other words, the "myFile.cfm" calls the <cf_makeSomeFiles> custom tag
ONCE (without a slash at the end). Then, the <cf_makeSomeFiles> calls the
<CF_makeSomeHTML> once without a slash at the end.
When I call <cf_makeSomeHTML>, the end result is that the "myFile.cfm"
template is getting invoked twice!!!
What is that all about?
-Jon
-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 12:29 PM
To: CF-Talk
Subject: RE: Windows CF5 Custom Tags Bug?
> The problem is that when, and only when, I call <cf_makesomehtml>,
> the ENTIRE http request appears to be running two times! I can't
> understand why that would possibly happen. In other words, in my
> little tree of nested custom tags, a very simple tag which
> generates some text is causing the entire request to be evaluated
> by the server a second time.
If you have an opening and closing CF_MAKESOMEHTML tag, and you don't
explicitly write code within that tag to prevent it from running twice,
it'll run twice.
<cf_foo> <-- runs once
<cf_foo></cf_foo> <-- runs twice
<cf_foo/> <-- runs twice
To avoide this, within the custom tag, you can enclose all the other code
within this:
<cfif ThisTag.ExecutionMode is "start">
...
</cfif>
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

