• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

cfcomponent

Synopsis

                  <cfcomponent>
  CFML...
  [<cfproperty>]
  ...
  [<cffunction>
  ...
  </cffunction>] 
  ...
</cfcomponent>

Acts as a container for a ColdFusion Component (CFC). Any CFML code outside a cfproperty or cffunction container is considered a constructor and is automatically executed when the component is instantiated. Any variables set are automatically available to all methods in the component.

Besides the named attributes listed below, you can pass any additional desired attributes to the cfcomponent tag as user-defined attributes. Although these attributes don’t do anything, they are available as metadata when the component is introspected using the GetMetaData( ) function. You may use any attribute names you wish with the exception of those reserved by cfcomponent: name, displayname, hint, output, path, properties, and functions.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint