
795
DEVELOPING
COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
Las
t
upda
te
d 8/5/2010
XML
<xf:group appearance="horizontal">
<xf:label>Accept?</xf:label>
<xf:extension/>
<xf:select1 appearance="full" bind="YesNo" id="YesNo">
<xf:extension>
<cf:attribute name="type">radio</cf:attribute>
</xf:extension>
<xf:choices>
<xf:item>
<xf:label>Yes</xf:label>
<xf:value>Yes</xf:value>
<xf:extension>
<cf:attribute name="checked">checked</cf:attribute>
</xf:extension>
</xf:item>
<xf:item>
<xf:label>No</xf:label>
<xf:value>No</xf:value>
<xf:extension/>
</xf:item>
</xf:choices>
</xf:select1>
</xf:group>
cfgrid tags
ColdFusion represents a
cfgrid
tag using the
cf:grid
XML tag. This tag has four attributes:
format
, which can be
Flash, Applet, or XML; and the
id
,
name
, and
bind
attributes, which all have the value of the
cfgrid
tag
name
attribute.
For applet and Flash format grids, ColdFusion inserts
cfgrid
controls in the XML as HTML embed objects in
<![CDATA[ sections in the body of a
cf:grid
tag. The controls can be Java applets or in SWF file format.
For XML format grids, ColdFusion converts the CFML to XML in the following format: