User Guide

Table Of Contents
720 Chapter 30: Creating Skinnable XML Forms
<cf:attribute name="type">SELECT</cf:attribute>
<cf:attribute name="onerror">_CF_onError</cf:attribute>
</xf:extension>
</xf:bind>
<xf:bind id="thoughts"
nodeset="//xf:model/xf:instance/cf:data/thoughts" required="false()">
<xf:extension>
<cf:attribute name="type">TEXT</cf:attribute>
<cf:attribute name="onerror">_CF_onError</cf:attribute>
</xf:extension>
</xf:bind>
Control elements
The XML tags that follow the
xf:bind element specify the form controls and their layout. The
XML includes one element for each form control and
cfformitem or cfformgroup tag.
CFML to XML tag mapping
ColdFusion MX maps CFML tags to XForms elements and ColdFusion extensions as the
following table shows:
CFML tag XML tag
cfinput type="text" xf:input
cfinput type="password" xf:secret
cfinput type="hidden" None: instance data only
cfinput type="file" xf:upload
cfinput type="radio" xf:select1
cfinput type="checkbox" xf:select
cfinput type="button" xf:trigger
cfinput type="image" xf:submit
cfinput type="reset" xf:submit
cfinput type="submit" xf:submit
cfselect multiple="false" xf:select1
cfselect multiple="true" xf:select
cftextarea xf:textarea
cfslider xf:range
cfgrid cf:grid
cftree cf:tree
cfformitem type="text" xf:output
cfformitem type="html" xf:output