User Guide

Table Of Contents
631
CHAPTER 27
Building Dynamic Forms with cfform Tags
This chapter describes some of the ways that you can use the cfform tag to create rich, dynamic
forms with sophisticated graphical controls, including several Java applet or Macromedia Flash
controls. You can use these controls without writing a line of Java or Flash code. This chapter
describes the
cfform tag and its child tags, and covers using several of the form controls,
independent of the output format.
Contents
Creating custom forms with the cfform tag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 631
Building tree controls with the cftree tag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 634
Building drop-down list boxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 642
Building slider bar controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 643
Creating data grids with the cfgrid tag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 644
Embedding Java applets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 655
Creating custom forms with the cfform tag
The cfform tag and its CFML subtags let you create dynamic forms in three formats:
HTML Generates standard HTML tags wherever possible, and uses applets or Flash for more
complex controls, such as grids, trees, and calendars. HTML format lets you present a familiar
appearance, but does not let you easily separate data and presentation, or provide some of the
more complex structures, such as Flash tabbed navigators or accordions, or customized XML
controls.
Flash Presents a modern, visually pleasing appearance. Flash format supports several controls,
such as tabbed navigators and accordions, that are not available in HTML format. Flash forms are
also browser-independent. In Flash format, Flash Player works in all commonly used browsers on
Windows and Macintosh systems, and in Netscape and Mozilla on Linux.
XML Lets you specify an Extensible Stylesheet Language Transformation (XSLT) skin that
converts the XML into styled HTML output. ColdFusion MX provides several skins that you can
use, and you can write your own custom skins and support custom controls.