o:tree
is an UIComponent
that supports data binding to a tree
of data objects represented by a TreeModel
instance, which is the current value of this
component itself (typically established via a ValueExpression
. During iterative processing
over the nodes of tree in the tree model, the object for the current node is exposed as a request
attribute under the key specified by the var
attribute. The node itself is exposed as a
request attribute under the key specified by the varNode
attribute.
Only children of type TreeNode
are allowed and processed by this component.
This component does not have a renderer since it does not render any markup by itself. This allows the developers to have full control over the markup of the tree by declaring the appropriate JSF components or HTML elements in the markup. Here is a basic usage example:
<o:tree value="#{bean.treeModel}" var="item" varNode="node"> <o:treeNode> <ul> <o:treeNodeItem> <li> #{node.index} #{item.someProperty} <o:treeInsertChildren /> </li> </o:treeNodeItem> </ul> </o:treeNode> </o:tree>
Info | Value |
---|---|
Component Type | org.omnifaces.component.tree.Tree |
Handler Class | None |
Renderer Type | None |
Description | None |
Name | Required | Type | Description |
---|---|---|---|
id | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| The component identifier for this component. This value must be unique within the closest parent component that is a naming container. |
rendered | false | javax.el.ValueExpression
(must evaluate to java.lang.Boolean )
| Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit. The default value for this property is true. |
binding | false | javax.el.ValueExpression
(must evaluate to javax.faces.component.UIComponent )
|
The ValueExpression linking this component to a property in a backing bean.
|
value | false | javax.el.ValueExpression
(must evaluate to java.lang.Object )
|
The current value of this component. As far only TreeModel is allowed as value.
|
var | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| The name of the request attribute which exposes the wrapped data of the current node of the tree model. |
varNode | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| The name of the request attribute which exposes the current node of the tree model. |
Output generated by Vdldoc View Declaration Language Documentation Generator.