Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

custom tag not working in cf4, IIS/sp6 1

Status
Not open for further replies.

simmerdown

Programmer
Jun 6, 2000
100
US
I'm trying to employ <cf_bodycontent> for the first time in a new application, and the error being thrown
[take a look at ]
implies that bodycontent.cfm isn't being processed.

Has anyone else had this sort of trouble with custom tags recently? Are there any fixes/workarounds? Please help me out if you can!

I'm running ColdFusion 4.0, IIS on NT 4.0 Service Pack 6.
The application ran beautifully on my Windows95/Personal Web Server/ColdFusion 4.0 test machine.
 
What does the code in your page look like? Where is the CFPARAM tag relative to your <CF_BODYCONTENT> tag. - tleish
 
This is my first Fusebox attempt, by the way.

<cf_bodycontent> is as follows:
[COLOR=003366]
Code:
<cfif not thistag.HasEndTag>
  <cfset thistag.generatedcontent=&quot;&quot;>
    You must have an end Tag
  <cfabort>
</cfif>
<cfparam name=&quot;attributes.name&quot; default=&quot;bodycontent&quot;>
<cfif thistag.executionmode is &quot;end&quot;>
  <cfset &quot;request.#attributes.name#&quot;=thistag.generatedcontent>
  <cfset thistag.generatedcontent=&quot;&quot;>
</cfif>
[/color]

<cf_bodycontent> surrounds my cfswitch statement. After </cf_bodycontent>, I cfinclude app_layout.cfm:
[COLOR=003366]
Code:
<cfparam name=&quot;attributes.headerfile&quot;>
<cfparam name=&quot;attributes.footerfile&quot;>
<cfparam name=&quot;request.bodycontent&quot;>
<cfparam name=&quot;attributes.showbody&quot; default=&quot;yes&quot;>
<cfif len(attributes.headerfile)><cfinclude template=&quot;#attributes.headerfile#&quot;></cfif>
<cfif attributes.showbody><cfoutput>#request.bodycontent#</cfoutput></cfif>
<cfif len(attributes.footerfile)><cfinclude template=&quot;#attributes.footerfile#&quot;></cfif>
[/color]
app_layout seems to be the file actually throwing the error, and doing so as if <cf_bodycontent> hadn't been processed at all.
 
The REQUEST scope wasn't implemented until ColdFusion Server 4.0.1

Do you have ColdFusion 4.0 or 4.0.1 Server? - tleish
 
Ahhhh. I've got 4.0.1 on my tester, and the webserver is still 4.0.0. Thanks for saving the day ... it would have been a long time before I had thought to check the CF version numbers.

Hee hee, every once in a while I still need to be asked the &quot;is it plugged in?&quot; type of question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top