Adobe COLDFUSION 9 Manual page 795

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

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
The body of each element contains the initial control data from the CFML tag's
example, for a
tag, the
cfselect
attributes of all the
tags with a
option
attribute value.
The following example shows the
forms" on page 783:
<xf:instance>
<cf:data>
<firstname/>
<lastname/>
<email/>
<revision>Comment Form revision 12a</revision>
<satisfaction>very satisfied</satisfaction>
<thoughts>We really want to hear from you!</thoughts>
</cf:data>
</xf:instance>
xf:submission element
The
element specifies the action when the form is submitted, and contains the values of the
xf:submission
and
cfformaction
method
The following example shows the XML for the form shown in the image in
<xf:submission action="/_MyStuff/phase1/forms/XForms/FrameExamples/Figure1.cfm"
method="post"/>
xf:bind elements
The
elements provide information about the input control behavior, including the control type and any data
xf:bind
validation rules. The XML has one bind element for each instance element that can submit data. It does not have bind
elements for controls such as
has the following attributes:
Attribute
Description
CFML tag
id
nodeset
XPath expression with the path in the XML to the instance element for the control
required
CFML tag
Each
element has an
xf:bind
validation values. The following table lists the cf namespace elements that are used here.
Element
cf:attribute name="type"
cf:attribute name="onerror"
cfargument name="maxlength"
element body is a comma-delimited list that contains the
xf:instance
attribute. For
selected
element for the form shown in the image in
xf:instance
attributes.:
tags, or
cfformitem
cfinput
attribute value
name
required
attribute value
element with ColdFusion specific information, including type and
xf:extension
Description
Control type. One of the following:
CHECKBOX, FILE, IMAGE, PASSWORD, RADIO, SELECT, SUBMIT TEXT, CFSLIDER.
The TEXT type is used for
JavaScript function specified by the control's
Value of the control's
Last updated 8/5/2010
attribute or its equivalent. For
value
and
buttons, the body contains the
submit
image
"About XML skinnable
tags with submit, input, reset, or image types. Each element
cfinputtype="text"
attribute, if any.
maxlength
name
name
"About XML skinnable
forms" on page 783:
and
.
cftextinput
onError
attribute, if any.
790

Advertisement

Table of Contents
loading

Table of Contents