Adobe COLDFUSION 9 Manual page 683

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Flex and AIR Integration in ColdFusion
Element
access
use-accessors
use-structs
force-cfc-lowercase
force-query-lowercase
force-struct-lowercase
use-mappings
method-access-level
Specifying the ColdFusion Data Service adapter
Flex provides adapters to connect to various back-end applications. To use the ColdFusion Data Service adapter, you
specify it in the data management configuration file by copying the following adapter-definition to the adapters section
of the data-management-config.xml file that is in the WEB-INF/flex folder of the server on which you want to run the
Flex application. If you are running LiveCycle Data Services ES in ColdFusion, the data-management-config.xml file
contains the adapter definitions by default.
The adapter definition includes the following line:
<adapter-definition id="coldfusion-dao" class="coldfusion.flex.CFDataServicesAdapter"/>
Specifying a destination
A destination is the server-side service or object that you call. You configure Data Management destinations in the
data-management-config.xml file.
The destination contains the following elements:
Element
destination id
adapter
-ref
-ref
channels
component
Description
Define the resolution rules and access level of the CFC being invoked
Whether the Value Object CFC has getters and setters. Set the value of
accessors
to
true
if you set
use-accessors
object CFC, ColdFusion sets the value of any property of the value object CFC in the
this
scope. If your CFC does not have any getters and setters, you can increase
performance by setting this to
for these methods. The default value is
Whether to translate ActionScript to CFCs. Set the value of
you don't require any translation of ActionScript to CFCs. The assembler can still return
structures to Flex, even if the value is
Whether to make property names, query column names, and structure keys lowercase
when converting to ActionScript. Query column names must precisely match the case
of the corresponding ActionScript variables. The default value is
A Boolean value specifying whether the source attribute can be relative to (start with)
a ColdFusion mapping. The default value is true.
Specifies the
access
the request. The following values are valid:
Flex can access only functions that specify remote access. (the default)
remote
public
Flex can access functions that specify both remote or public access.
Description
The ID must be unique for each destination.
The name of the adapter to use. You use the ColdFusion
specific destinations.
Use the ColdFusion configured channels that have the instantiate-types flag set to
The name or path on the ColdFusion server.
Last updated 8/5/2010
if there are getters and setters in the Value Object CFC. However,
to
true
and there are no getters and setters in the value
false
so that ColdFusion does not spend time looking
true
.
. The default value is
false
attribute values a CFC must have for ColdFusion to respond to
adapter-ref
element for any ColdFusion
678
use-
to
if
use-structs
true
.
false
false
.
.
false

Advertisement

Table of Contents
loading

Table of Contents