
786
DEVELOPING
COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
Las
t
upda
te
d 8/5/2010
•
cfselect
•
cfslider
•
cftextarea
Using other skins:
If you use any other skin, some attributes are not supported, or the skin supports custom attributes.
Get the information about the supported attributes from the XSLT skin developer.
Using cfformitem tags
ColdFusion does not process inline text or standard HTML tags when it generates an XML form; therefore, you use
the
cfformitem
tag to add formatted HTML or plain text blocks and any other display elements, such as horizontal
and vertical rules, to your form.
ColdFusion converts all
cfformitemtype
attribute values to all-lowercase. For example, if you specify
type="MyType"
ColdFusion converts the type name to
"mytype"
.
ColdFusion makes no other limitations on the
cfformitemtype
attributes that you can use in a form, but the XSLT
skin must process the attributes to display the items.
Using ColdFusion skins:
The skins provided in ColdFusion support the following
cfformitem
types:
•
hrule
•
text
•
html
The
hrule
type inserts an HTML
hr
tag, and the
text
type displays unformatted plain text.
The
html
type displays HTML-formatted text. You can include standard HTML text markup tags, such as
strong
,
p
,
ul,
or
li,
and their attributes. For example, the following text from the
Example: a simple skinnable form
section
shows how you could use a
cfformitem
tag to insert descriptive text in a form:
<cfformitem type="html">
<b>We value your input</b>.<br>
<em>Please tell us a little about yourself and your thoughts.</em>
</cfformitem>
Using other skins:
If you use any other skin, the supported attributes and attribute values depend on the skin
implementation. Get the information about the supported attributes and attribute values from the XSLT skin
developer.
Using cfformgroup tags
The
cfformgroup
tag lets you structure forms by organizing its child tags, for example, to align them horizontally or
vertically. Some skins use
cfformgroup
tags for more complex formatting, such as tabbed navigator or accordion
containers. ColdFusion makes no limitations on the
type
attributes that you can use in a form, but the XSLT must
process the resulting XML to affect the display.
Using
ColdFusion
skins:
The skins provided in ColdFusion support the following
type
attribute values:
•
horizontal
•
vertical
•
fieldset
The
horizontal
and
vertical
types arrange their child tags in the specified direction and place a label to the left of
the group of children. The following text from the
Example: a simple skinnable form
section shows how you could use
a
cfformgroup
tag to apply a
Name
label and align first and last name fields horizontally:
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...