Project Documentation
Foundation

Description

A tree data component.

Screen Shot

tree

API

component-family org.apache.myfaces.HtmlTree
renderer-type org.apache.myfaces.HtmlTree
component-class org.apache.myfaces.custom.tree.HtmlTree
renderer-class org.apache.myfaces.custom.tree.renderkit.html.HtmlTreeRenderer
tag-class org.apache.myfaces.custom.tree.taglib.TreeTag

Usage

 value="TreeModel"
           styleClass="CSSClass"
           nodeClass="CSSClass"
           selectedNodeClass="CSSClass"
           expandRoot="{true|false}">
</t:tree>
            

Syntax

<t:tree>

value - the tree model.
var - a variable to hold current selection.
styleClass - CSSClass for tree.
nodeClass - CSSClass for tree nodes.
selectedNodeClass - CSSClass for selected tree node.
headerClass - CSSClass for header.
footerClass - CSSClass for footer.
rowClasses - CSSClass for rows.
columnClasses - CSSClass for columns.
iconClass - CSSClass for icons.
iconLine - the icon for node with line.
iconNoline - the icon for node with no line.
iconChildFirst - the icon for first child.
iconChildMiddle - the icon for middle child.
iconChildLast - the icon for last child.
iconNodeOpen - the icon for expanded node.
iconNodeOpenFirst - the icon for first expanded node.
iconNodeOpenMiddle - the icon for middle expanded node.
iconNodeOpenLast - the icon for last expanded node.
iconNodeClose - the icon for collapsed node.
iconNodeCloseFirst - the icon for first collapsed node.
iconNodeCloseMiddle - the icon for middle collapsed node.
iconNodeCloseLast - the icon for last collapsed node.
expandRoot - if true root node is expanded.
expireListeners - Time interval the tree will remain registered as a TreeModelListener without being accessed.

Instructions

see examples/tree.jsp for an example!