tracker issue : CF-3037156

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 74767:Please add <cfsavecontent> to cfscript, or a variable attribute to cfinclude

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Daryl Banttari / Daryl Banttari (cfprimer_guy)

Created: 01/05/2009

Components: Language, CFSCRIPT

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 216113 /

Priority/Frequency: Major / Unknown

Locale/System: English / Platforms All

Vote Count: 5

Problem:

Please add <cfsavecontent> to cfscript, or a variable attribute to cfinclude.  For MVC views, a common pattern is to have a cfc method call a cfm view page, and sometimes you want to store that content in a variable, instead of displaying it inline.  Without this change, we'd be forced to stick to using <cfcomponent> instead of component{} in order to have access to the <cfsavecontent> functionality.

savecontent variable="navsection" {
    include template="navView.cfm";
}

or

include variable="navsection" template="navView.cfm";
Method:


Result:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3037156

External Customer Info:
External Company:  
External Customer Name: Daryl Banttari
External Customer Email: 63180D784462A9A5992015D5
External Test Config: 01/05/2009

Attachments:

Comments:

This bug has been voted..
Vote by External U.
24295 | November 10, 2011 07:10:14 PM GMT
This bug has been voted..
Vote by External U.
24296 | November 10, 2011 07:10:15 PM GMT
+1 - we need script-based analogs for as many tags and their attributes as possible... not just cfscript but the rest of the attributes for cfthrow and so on. The cfsavecontent tag is only one of the many.
Vote by External U.
24297 | November 10, 2011 07:10:16 PM GMT
This bug has been voted..
Vote by External U.
24298 | November 10, 2011 07:10:18 PM GMT
We definitely need a script-based solution for one or both of these so that we can really write all our controller and model CFCs in script.
Vote by External U.
24299 | November 10, 2011 07:10:19 PM GMT