| |
|
|
|
 |
Home NewsBlogProducts Download Buy Now Documentation Support |
 |
 |
|
|
 |
| |


Contents
|
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 |
String |
| |
| The value-binding expression linking this component tag to a backing bean property. |
| clientSideToggle |
String |
| |
| The clientSideToggle attribute expects a boolean value that, when true, indicates that client-side toggling should be used for this tree. |
| id |
String |
| |
| The unique identifier value for this component. The value must be unique within the closest naming container. |
| imageLocation |
String |
| |
| The imageLocation attribute specifies the location of images for this component. |
| javascriptLocation |
String |
| |
| The javascriptLocation attribute defines the location of JavaScript files for this component. |
| preserveToggle |
String |
| |
| The preserveToggle attribute expects a boolean value that, when true, indicates that the tree should preserve its toggled state between JSF requests. |
| rendered |
String |
| |
| A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered. |
| showLines |
String |
| |
| The showLines attribute attribute expects a boolean value that, when true, indicates that lines should be shown in the tree. |
| showNav |
String |
| |
| 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 |
String |
| |
| The showRootNode attribute expects a boolean value that, when true, indicates that the root node of the tree should be displayed. |
| styleLocation |
String |
| |
| The styleLocation attribute defines the location of Cascading Style Sheets for this component. |
| value |
String |
| Required |
| The value attribute sets the current value for this component. |
| var |
String |
| |
| 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 |
String |
| |
| The varNodeToggler attribute defines the name of a server-side object that controls expanding and collapsing of nodes in the tree. |
|
|
|
| |
|