MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual page 241

Developing coldfusion mx applications
Table of Contents

Advertisement

In this case, a ColdFusion page with the following code sets the MetaTypeInfo variable to Float:
<cfobject component="mathCFC" name="MathFuncs">
<cfset MetaTypeInfo=GetMetadata(MathFuncs).MetaType>
Note: Avoid using expressions in custom metadata attributes. Using expressions in metadata
attributes can cause unpredictable behavior, because all metadata expressions are replaced by
strings in the metadata structure returned from the GetMetadata function. Also, do not use the
reserved attributes as your metadata attribute names. The reserved words for the
name, path, properties, functions, and extends. The reserved words for the
returnType, access, roles, output, and arguments. The reserved words for the
name, required, default, and type. The reserved words for the
The cfproperty tag
The
tag has several purposes:
cfproperty
It can create complex data types with WSDL descriptions for ColdFusion web services. For
more information, see
on page 724
of
Chapter 32, Using Web
It can provide documentation of component properties in the ColdFusion introspection
output. The introspection information includes the values of the standard
attributes.
Note: The
cfproperty
purposes only. You use a
set its value.
Saving and naming ColdFusion components
The following table lists the locations in which you can save component files and how they can be
accessed from each location:
URL
Form
Flash Remoting
Web services
ColdFusion page
Note: ColdFusion MX mappings and custom tag roots can exist within the web root. If so, they are
accessible to remote requests, including URL, form, Flash Remoting, and web service invocation.
Your application can refer to any component in one of these directories specifically by using a
qualified component name that starts with a subdirectory of one of the accessible directories and
uses a period to delimit each directory in the path to the directory that contains the component.
For example, the following example is a qualified name of a saw component:
com.mycompany.catalog.product.saw
In this example, the saw.cfc file must be in the com\mycompany\catalog\product subdirectory of
a directory that ColdFusion searches for components, as listed in the preceding table. When you
refer to a component using the qualified name, ColdFusion looks for the component in the order
described in
"Specifying the CFC location" on page
"Using ColdFusion components to define data types for web services"
Services.
tag does not create a variable or assign it a value. It is used for information
tag, or CFScript assignment statement to create the property and
cfset
Web root
Yes
Yes
Yes
Yes
Yes
cfproperty
ColdFusion
Custom
mappings
tag roots
No
No
No
No
No
No
No
No
Yes
Yes
224.
Building ColdFusion components
tag are
cfcomponent
tag are name,
cffunction
tag are
cfargument
tag are name and type.
tag
cfproperty
Current
directory
N/A
Yes
N/A
N/A
Yes
241

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion mx

Table of Contents