cfassociateDescriptionAllows subtag data to be saved with the base tag. Applies only to custom tags. CategoryWeb application framework tags Syntax<cfassociate baseTag = "base_tag_name" dataCollection = "collection_name"> See also
cfapplication Attributes
UsageCall this tag within a subtag to save subtag data in the base tag.
ColdFusion saves subtag attributes in a structure whose default name is If the custom tag uses an attribute collection, the attributes passed in the attribute collection are saved as independent attribute values, with no indication that they were grouped together in a structure within the custom tag. Example<!--- Find the context ---> <cfif thisTag.executionMode is "start"> <!--- Associate attributes This code occurs in a custom tag's sub tag. ---> <cfassociate baseTag = "CF_TAGBASE"> <!--- Define defaults for attributes ---> <cfparam name = "attributes.happy" default = "Yes"> <cfparam name = "attributes.sad" default = "No"> ...
|