For More Information - Adobe 38043740 - ColdFusion Standard - Mac Development Manual

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Building Blocks of ColdFusion Applications
Recommended uses
CFX tags provide one way of using C++ or Java code. However, you can also create Java classes and COM objects and access
them using the
tag. CFX tags, however, provide some built-in features that the
cfobject
• CFX tags are easier to call in CFML code. You use CFX tags directly in CFML code as you would any other tag, and
you can pass arguments using a standard tag format.
• ColdFusion provides predefined classes for use in your Java or C++ code that facilitate CFX tag development. These
classes include support for request handling, error reporting, and query management.
CFX tags are useful in the following circumstances:
• You already have existing application functionality written in C++ or Java that you want to incorporate into your
ColdFusion application.
• You cannot build the functionality you need using ColdFusion elements.
• You want to provide the new functionality in a tag format, as opposed to using the
Java or COM objects.
• You want to use the Java and C++ classes provided by ColdFusion for developing your CFX code.

For more information

For more information on CFX tags, see
Selecting among ColdFusion code reuse methods
The following table lists common reasons to employ code reuse methods and indicates the techniques to consider for
each purpose. The letter P indicates that the method is preferred. (There can be more than one preferred method.) The
letter A means that the method provides an alternative that is useful in some circumstances.
This table does not include CFX tags. You use CFX tags only when it is best to code your functionality in C++ or Java.
For more information about using CFX tags, see
Purpose
Provide code, including CFML, HTML, and static
text, that must be used in multiple pages.
Deploy headers and footers.
Include one page in another page.
Divide pages into smaller units.
Use variables from a calling page.
Implement code that uses recursion.
Distribute your code to others.
Operate on a body of HTML or CFML text.
Use subtags.
Provide a computation, data manipulation, or
other procedure.
Provide a single functional element that takes
any number of input values and returns a
(possibly complex) result.
"Building Custom CFXAPI
Tags" on page 224.
"Using CFX
tags" on page 151.
cfinclude tag
Custom tag
P
P
P
P
A
P
P
P
P
P
A
A
Last updated 1/20/2012
tag does not have:
cfobject
tag to import native
cfobject
UDF
Component
P
P
P
P
P
P
P
152

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents