Documentation
Tomahawk Tools

Search 

Contents

  1. Introduction
  2. Getting Started
  3. Tomahawk Concepts
  4. Code View Support
  5. Design View Support
  6. Tag Object Toolbars
  7. Server Behaviors
  8. Property Inspectors
Selected 9. Tomahawk Tag Reference

10. Tomahawk Tag Reference

Contents > Tomahawk Tag Reference > t:tree2

t:tree2

The t:tree2 tag is a component that generates an HTML-based tree that gets its data from a backing bean. The tree's appearance can be customized through special attributes, enabling you to control the appearance of each of node in the tree. Other JSF components, such as h:outputText, h:graphicImage, and so on, can be contained by the nodes of the tree. The node exand/collapse behavior of the tree can be configured to use client-side or server-side toggling.

Example

<t:tree2></t:tree2>

Note: The official MyFaces Tomahawk documentation states that the attributes of this tag accept literal values or value-binding expressions. The Tomahawk implementation, however, ignores boolean value-bindings such as #{true} and #{false} in some attribute of this tag. Therefore, JSFToolbox for Dreamweaver detects the boolean literal style you are using (i.e. "true" or "#{true}") and toggles the value in the same notation when you use the Properties panel.

Tag Attributes

binding Expression
 
The value-binding expression linking this component tag to a backing bean property.
clientSideToggle Boolean
 
The clientSideToggle attribute expects a boolean value that, when true, indicates that client-side toggling should be used for this tree.
id Text
 
The unique identifier value for this component. The value must be unique within the closest naming container.
imageLocation File
 
The imageLocation attribute specifies the location of images for this component.
javascriptLocation File
 
The javascriptLocation attribute defines the location of JavaScript files for this component.
preserveToggle Boolean
 
The preserveToggle attribute expects a boolean value that, when true, indicates that the tree should preserve its toggled state between JSF requests.
rendered Boolean
 
A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered.
showLines Boolean
 
The showLines attribute attribute expects a boolean value that, when true, indicates that lines should be shown in the tree.
showNav Boolean
 
The showNav attribute expects a boolean value that, when true, indicates that plus/minus navigation handles should be shown beside each node in the tree.
showRootNode Boolean
 
The showRootNode attribute expects a boolean value that, when true, indicates that the root node of the tree should be displayed.
styleLocation File
 
The styleLocation attribute defines the location of Cascading Style Sheets for this component.
value Text
Required
The value attribute sets the current value for this component.
var Text
 
The var attribute sets the name of a request-scope attribute exposing the data for each iteration over the rows in the underlying data model for this table.
varNodeToggler Text
 
The varNodeToggler attribute defines the name of a server-side object that controls expanding and collapsing of nodes in the tree.