Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 804

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
The cfformgroup and cfformitem tags
All
tags and all
cfformgroup
elements. The following rules determine the element structure:
• The CFML tag
attribute determines the
type
• ColdFusion converts
type
• For
tags only, the CFML
cfformgroup
• All other CFML attributes are placed in
• The
tags generate an
cfformitem
The following example shows two
CFML
<cfformitem name="text1" type="text" style="color:green">
Please tell us a little about yourself and your thoughts.
</cfformitem>
<cfformitem type="hrule" height="3" width="200" testattribute="testvalue" />
XML
<xf:output><![CDATA[Please tell us a little about yourself and your
thoughts.]]>
<xf:extension>
<cf:attribute name="style">color:green</cf:attribute>
</xf:extension>
</xf:output>
<xf:group appearance="hrule">
<xf:extension>
<cf:attribute name="width">200</cf:attribute>
<cf:attribute name="height">3</cf:attribute>
<cf:attribute name="testattribute">testvalue</cf:attribute>
</xf:extension>
</xf:group>
Example: control element XML
The following code shows the XML for the input controls for the form shown in the image in
forms" on page 783. This code immediately follows the end of the
tags, except
cfformitem
type="html"
xf:groupappearance
attribute values to all-lowercase characters.
attribute determines the
label
cf:attribute
element with the body text in a <![CDATA[ section.
xf:output
tags, and the resulting XML:
cformitem
Last updated 1/20/2012
and
type="text",
attribute.
xf:grouplabel
elements in a
xf:extension
element.
xf:model
generate
xf:group
attribute.
element.
"About XML skinnable
799

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents