432
Chapter 2: ColdFusion Tags
Note:
All attributes are passed to the XML generated in XML format, but no ColdFusion MX skin
interprets
cftree
XML.
Usage
This tag must be in a
cfform
tag block.
The applet format tree requires the client to download a Java applet. Also, if the client does not
have an up-to-date Java plugin installed, the system might also have to download an updated Java
plugin to display an applet format tree. The Flash format tree uses a Flash control, and can be
embedded in an HTML format
cfform
tag. For this tag to work properly in either Flash or applet
format, the browser must also be JavaScript-enabled.
Note:
If you specify Flash format for this tag in an HTML format form, and you do not specify
height
and
width
attributes, Flash takes up more than the remaining visible area on the screen. If any other
output follows the tree, including any form controls, users must scroll to see it. Therefore, if you follow
a Flash tree in an HTML form with additional output, specify
height
and
width
values.
If the following conditions are true, a user’s selection from query data that populates this tag’s
options continues to display after the user submits the form:
•
The
cfform
preserveData
attribute is set to "
Yes
"
•
The
cfform
action
attribute posts to the same page as the form itself (this is the default), or
the action page has a form that contains controls with the same names as corresponding
controls on the user entry form
For more information, see the
cfform
tag entry.
Form variables
When you select a tree item and submit the form that contains the tree, ColdFusion creates a
structure with two variables in the action page Form scope. The structure name is the tree name.
The fields are as follows:
object format
If you specify
object
in the
format
attribute, ColdFusion returns the tree as a ColdFusion
structure, and does not send the tree to the browser. You can, for example, loop over the structure
to populate a menu, generate "breadcrumb" links for page navigation, or create a dhtml tree.
Note:
If you specify an object format tree in an XML format form, ColdFusion does not generate the
tree.
Field
Value
path
The path through the tree to the selected node, in the form
[
root
\]
node_1
\
node_2
\.... In applet format, the path includes the root node
only if the
completePath
attribute is True. In Flash format, the path always
includes the root node.
node
The value of the selected tree node.
Summary of Contents for COLFUSION MX 7 - INSTALLING AND USING COLDFUSION MX
Page 1: ...COLDFUSION MX7 CFML Reference...
Page 20: ...20 Chapter 1 Reserved Words and Variables...
Page 50: ...50 Chapter 2 ColdFusion Tags cfelse br Searching cfif cfloop cfif...
Page 101: ...cfdefaultcase 101 cfdefaultcase cfswitch cfoutput Your grade is grade cfoutput...
Page 115: ...cfdocumentsection 115 cfdocumentsection cfoutput cfdocument...
Page 411: ...cftable 411 cftable body html...
Page 515: ...Chr 515 maxlength 5 p input type Submit name input type RESET cfform...
Page 605: ...GetEncoding 605 WriteOutput The encoding is theEncoding cfscript cfif...
Page 629: ...GetProfileString 629 tr td input type Submit name Submit value Submit td td td tr table form...
Page 655: ...IIf 655 cfoutput IIf Hour Now GTE 12 DE It is afternoon or evening DE It is morning cfoutput b...
Page 664: ...664 Chapter 3 ColdFusion Functions cfelse h3 Conversion error h3 cfif...
Page 687: ...IsStruct 687 cfoutput cfquery cfif cfoutput hr Employee Add Complete cfoutput cfcase cfswitch...
Page 751: ...LSDateFormat 751 hr noshade cfoutput cfloop...
Page 861: ...StructFind 861 cfquery cfif cfoutput hr Employee Add Complete cfoutput cfcase cfswitch...
Page 903: ...Val 903 value Is the beginning numeric name form...
Page 932: ...932 Chapter 3 ColdFusion Functions...
Page 944: ...944 Chapter 4 ColdFusion MX Flash Form Style Reference...
Page 962: ...962 Chapter 5 Application CFC Reference...
Page 1054: ...1054 Chapter 6 ColdFusion MX Event Gateway Reference...