Project Documentation
Foundation

Description

A table with a tree column.

Screen Shot

treetable

API

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

Usage

<t:tree id="String"
           value="TreeModel"
           var="String"
           expandRoot="{true|false}">
    <t:treeColumn header="UIComponent"
                     footer="UIComponent">
        ...(anyComponent)...
    </t:treeColumn>
</t:tree>
            

Syntax

<t:treeColumn>

header - the header uicomponent.
footer - the footer uicomponent.

Instructions

Just nest a treeColumn inside of a tree element, see doc of tree for help about attributes.

<t:tree> defines the tree.
<t:treeColumn> outlines the column where the tree structure will be render as part of the tree table.

see examples/treeTable.jsp for an example!