Summary
Tag name: <t:tree>
UIComponent class: org.apache.myfaces.custom.tree.HtmlTree
Tag class: org.apache.myfaces.custom.tree.taglib.TreeTag
Component type: org.apache.myfaces.HtmlTree
Component family: org.apache.myfaces.HtmlTree
Renderer type: org.apache.myfaces.HtmlTree
Renderer class: org.apache.myfaces.custom.tree.renderkit.html.HtmlTreeRenderer
A tree data component.
Unless otherwise specified, all attributes accept static values or EL expressions.
Tree implementation based on javax.swing.JTree.
The tree model is assigned by using a value binding named model and is not stored in view state.
A hierarchy of {@link HtmlTreeNode}objects is used to represent the current expanded state of the tree. The root node is held as a faces named * rootNode.
Usage
value="TreeModel" styleClass="CSSClass" nodeClass="CSSClass" selectedNodeClass="CSSClass" expandRoot="{true|false}"> </t:tree>
Attributes
Name | Type | Supports EL? | Description |
---|---|---|---|
binding | org.apache.myfaces.custom.tree.HtmlTree | Only EL | Identifies a backing bean property (of type UIComponent or appropriate subclass) to bind " + "to this component instance. This value must be an EL expression. |
columnClasses | String | Yes | |
expandRoot | boolean | No | |
expireListeners | long | Yes | Time interval the tree will remain registered as a TreeModelListener without being accessed |
footerClass | String | Yes | |
headerClass | String | Yes | |
iconChildFirst | String | Yes | |
iconChildLast | String | Yes | |
iconChildMiddle | String | Yes | |
iconClass | String | Yes | |
iconLine | String | Yes | |
iconNodeClose | String | Yes | |
iconNodeCloseFirst | String | Yes | |
iconNodeCloseLast | String | Yes | |
iconNodeCloseMiddle | String | Yes | |
iconNodeOpen | String | Yes | |
iconNodeOpenFirst | String | Yes | |
iconNodeOpenLast | String | Yes | |
iconNodeOpenMiddle | String | Yes | |
iconNoline | String | Yes | |
id | String | Yes | Get a string which uniquely identifies this UIComponent within the scope of the nearest ancestor NamingContainer component. The id is not necessarily unique across all components in the current view. |
layout | String | Yes | The type of layout markup to use when rendering this group. If the value is "block" the renderer must produce an HTML "div" element. Otherwise HTML "span" element must be produced. |
value | org.apache.myfaces.custom.tree.model.TreeModel | Yes | |
nodeClass | String | Yes | |
rendered | boolean | Yes | A boolean value that indicates whether this component should be rendered. Default value: true. |
rowClasses | String | Yes | |
selectedNodeClass | String | Yes | |
styleClass | String | Yes | The CSS class for this element. Corresponds to the HTML 'class' attribute. |
var | String | Yes |