
793
DEVELOPING
COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
Las
t
upda
te
d 8/5/2010
ColdFusion converts
cfformitem
tags with text and html
type
attributes to XForms
output
elements with the tag
body in a <![CDATA[ section. It converts all other
cfformitem
tags to XForms
group
elements, and sets each
element’s
appearance
attribute to the
cfformitem
tag’s
type
attribute. The XSLT must process these elements to
produce meaningful output. For example, the ColdFusion default skin transform displays the
xf:output
text blocks
and processes the
xf:groupappearance="hrule"
element, but it ignores all other
xf:group
elements.
General control element structure
Each control element that a standard XForms control element can represent has the following general structure.
<xf:tagname bind="bindid" id="bindid">
<xf:label>label</xf:label>
<xf:extension>
<cf:attribute name="type">controltype</cf:attribute>
<cf:attribute name="attribname>attribvalue</cf:attribute>
<cf:attribute name="attribname>attribvalue</cf:attribute>
.
.
.
</xf:extension>
</xf:tagname>
The following table describes the variable parts of this structure:
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
cfformitem type="*" (all but text, html)
xf:group appearance="*"
cfformgroup type="*"
xf:group appearance="*"
CFML tag
XML tag