Project Documentation

Summary

Tag name: <t:tree2>
UIComponent class: org.apache.myfaces.custom.tree2.HtmlTree
Tag class: org.apache.myfaces.custom.tree2.TreeTag
Component type: org.apache.myfaces.HtmlTree2
Component family: org.apache.myfaces.HtmlTree2
Renderer type: org.apache.myfaces.HtmlTree2
Renderer class: org.apache.myfaces.custom.tree2.HtmlTreeRenderer

Represents "tree data" in an HTML format. Also provides a mechanism for maintaining expand/collapse state of the nodes in the tree. A component that provides an HTML-based tree from data supplied by a backing bean. The tree is highly customizable and allows for fine-grained control over the appearance of each of the nodes depending on their type. Almost any type of JSF component (text, image, checkbox, etc.) can be rendered inside the nodes and there is an option for client-side or server-side toggling of the expand/collapse state. Unless otherwise specified, all attributes accept static values or EL expressions.

Screen Shot

tree2.jpeg

Instructions

[pending]

Additional Information

MyFaces Wiki.

Attributes

Name Type Supports EL? Description
binding String 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.
clientSideToggle boolean Yes Perform client-side toggling of expand/collapse state via javascript (default is true.)
id String Yes An identifier for this particular component instance within a component view.

The id must be unique within the scope of the tag's enclosing NamingContainer (eg h:form or f:subview). The id is not necessarily unique across all components in the current view

This value must be a static value, ie not change over the lifetime of a component. It cannot be defined via an EL expression; only a string is permitted.

imageLocation String Yes An alternate location to find image resources. If no values is specified, images will be loaded from the resources directory using AddResource and ExtensionsFilter.
javascriptLocation String Yes An alternate location to find javascript resources. If no values is specified, javascript will be loaded from the resources directory using AddResource and ExtensionsFilter.
preserveToggle boolean Yes Preserve changes in client-side toggle information between requests (default is true.)
rendered boolean Yes A boolean value that indicates whether this component should be rendered. Default value: true.
showLines boolean Yes Show the connecting lines (default is true.)
showNav boolean Yes Show the "plus" and "minus" navigation icons (default is true.) Value is ignored if clientSideToggle is true.
showRootNode boolean Yes Include the root node when rendering the tree (default is true.)
styleLocation String Yes An alternate location to find stylesheet resources. If no values is specified, stylesheets will be loaded from the resources directory using AddResource and ExtensionsFilter.
value Object Yes Gets the value of the TreeData.
var String Yes Return the request-scope attribute under which the data object for the current node will be exposed when iterating. This property is not enabled for value binding expressions.
varNodeToggler String Yes Gets