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

Introspection

We've been dutifully adding information in our component using the displayname and hint attributes of the <cfcomponent> and <cffunction> tags. Let's take a look now at how those descriptions and all of the CFC's other details can be used for improved documentation and team development.

We mentioned earlier that a CFC has the ability to examine itself and describe its capabilities. You can use the component browser from Dreamweaver (Figure 19.1) to see this in action (as described in depth in the Macromedia ColdFusion MX 7 Web Application Construction Kit). Dreamweaver looks at the definition of the current site for the identity of the ColdFusion server being used. It then makes a request to that ColdFusion server for a listing of all of the components available.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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