User Guide

Table Of Contents
718 Chapter 30: Creating Skinnable XML Forms
xf:bind elements
The
xf:bind elements provide information about the input control behavior, including the
control type and any data 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
cfformitem
tags, or
cfinput tags with submit, input, reset, or image types. Each element has the following
attributes:
Each
xf:bind element has an xf:extension element with ColdFusion specific information,
including type and validation values. The following table lists the cf namespace elements that are
used in this section:
Attribute Description
id CFML tag
name attribute value
nodeset XPath expression with the path in the XML to the instance
element for the control
required CFML tag
required attribute value
Element Description
cf:attribute name="type" Control type. One of the following:
CHECKBOX, FILE, IMAGE, PASSWORD, RADIO, SELECT,
SUBMIT TEXT, CFSLIDER.
The TEXT type is used for
cfinput type="text" and cftextinput.
cf:attribute name="onerror" JavaScript function specified by the control’s onError attribute, if
any.
cfargument name="maxlength Value of the control’s
maxlength attribute, if any.
cf:validate type="valiadationtype" Data validation information.
Has one attribute,
type, the validation type, and one or more
cf:argument and cf:trigger children. ColdFusion MX generates
a
cf:validate element for each of the following:
cfinput or cftextarea validation attribute
cfinput or cftextarea range attribute
cfslider: the range and message attributes are specified by a
cf:validate type="range" element