Adobe COLDFUSION 9 Manual page 772

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
• ColdFusion provides two tags that let you take advantage of Flash features and perform tasks that you would
otherwise do in HTML: use the
and you use the
cfformgroup
• Standard ColdFusion forms tags, such as
and attribute values that let you specify form style and behavior. These tags include the
Flash-specific
attribute values for appearance, and the
style
other fields.
The reference pages for the individual tags in the CFML Reference describe the form tags and their features,
indicating which attributes and values work with Flash forms.
Building Flash forms
You build Flash forms using standard ColdFusion form tags, plus the
create the elements of the form, as follows:
• The
,
cfcalendar
cfgrid
user input.
• The
tag lets you add formatted or unformatted text, spacers, and horizontal and vertical rules without
cfformitem
using HTML.
• The
tag creates containers, such as horizontally aligned boxes or tabbed navigators, that let you
cfformgroup
group, organize, and structure the form contents.
Flash forms follow a hierarchical structure of containers and children.
The
tag is the master container, and its contents are child containers and controls.
1
cfform
The
tag defines a container that organizes its child elements.
2
cfformgroup
3
All other tags create individual controls, including display elements such as rules.
For example, the image in the
children. (This outline only shows the structure of the page that is visible in the image. It omits the structure of the
Preferences tab.)
1
cfform
2
cfformgroup type="tabnavigator" -- Tab navigator container
3
cfformgroup type="page" -- Tabbed page container, child of tabnavigator
4
cfformgroup type="horizontal" -- Aligns its two children horizontally
5
5
5
4
cfformitem type="hrule" -- Displays a rule
4
cfformitem type="html" -- Displays formatted text
4
cffinput type="text" -- E-mail input control
4
cfformitem type="hrule" -- Displays a rule
4
cfinput type="text" -- Phone number input control
4
cfinput type="spacer" -- Space between the phone and date controls
4
cfinput type="datefield" -- Date input control
3
cfinput type="page" -- Second tabbed page container for preferences
.
.
2
cfformgroup type="horizontal" -- Follows the tabnavigator in the form
3
cfinput type="submit" -- Submit button control
3
cfinput type="reset" -- Reset button control
tag to add text blocks and horizontal and vertical rules to your form,
cfformitem
tag to structure your form.
and
cfinput
,
,
,
cfinput
cfselect
cftextarea
About Flash forms
section has the following hierarchical structure of containers and
cfinput type="text" -- First name input control
cfinput type="spacer" -- Space between the name input controls
cfinput type="text" -- Last name input control
Last updated 8/5/2010
, include attributes that work only with Flash forms,
cftree
attribute for filling a field value with data from
bind
and
cfformgroup
, and
tags create controls for data display and
cftree
attribute with many
skin
tags. These tags
cfformitem
767

Advertisement

Table of Contents
loading

Table of Contents