tracker issue : CF-3037535

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

Bug 75473:(Watson Migration Closure)Instead of building new implementations of tags as functions, give us an import ability so we can import our custom tags using a prefix and closure-like syntax

| View in Tracker

Status/Resolution/Reason: Closed/Deferred/

Reporter/Name(from Bugbase): Jared Rypka-Hauer / Jared C Rypka-Hauer (Jared Rypka-Hauer)

Created: 02/11/2009

Components: Language, CFSCRIPT

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 3

Problem:

Instead of building new implementations of tags as functions, give us an import ability so we can import our custom tags using a prefix and closure-like syntax. ColdFusion could then automatically import all tags under the cf: prefix. All other custom tags would then be available as well as CF's tags.

This is really super-critical because without it we lose the ability to use custom tags without building a tag-based cffunction wrapper to access them. Without this, a critical portion of ColdFusion's code reuse and high-level funcitonality is gone for those using script-based syntax.

Case in point: Model-Glue uses a custom tag to render views. Were MG build in script, either one CFC would have to be different than the rest and use tags, or the custom tag idea would have to go right out the window.

Sample syntax:

//import my custom form-building custom tag widgets
import path="/custom_tags/myBiz/formWidgets" prefix="frm";

frm:form(action="/myProcessor.cfm",method="post") {
   frm:input(type="text",name="email",validateAs="emailAddress");
   frm:select(name="sel",query="qry") {
      frm:option(displaycolumn="name",valuecolumn="id");
   }
}

// use a built-in CF tag that's automatically imported to cf:
cf:query(datasource="myDsn",name="variables.user") {
   select * from user where userid =
   cf:queryparam(value="#user.getId()#",cfsqltype="cf_sql_integer");
}
Method:


Result:

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

Watson Bug ID:	3037535

External Customer Info:
External Company:  
External Customer Name: Jared C Rypka-Hauer
External Customer Email: 08C411A143BC38A7992016B6
External Test Config: 02/11/2009

Attachments:

Comments:

This bug has been voted..
Vote by External U.
24035 | November 10, 2011 07:16:27 PM GMT
I definitely support this. Custom tags set CF apart from other languages. Without them we're making CF a lot less special.
Vote by External U.
24036 | November 10, 2011 07:16:28 PM GMT
I think the ability to bring tags directly into script will be really useful, and give cf developers a huge amount of flexibility when using cfscript.
Vote by External U.
24037 | November 10, 2011 07:16:29 PM GMT