The tree tag has two attributes,
value and
var. The attribute
value
contain a DefaultMutableTreeNode, which represent the tree.
The
var attribute is the name of the variable, to get specific content.
<tc:tree value="Node name=Category id=root" var="node">
In every tree, a
<tc:treeNode/> has to be added.
A
<tc:treeNode/> can contain several tags to describe the node.
In this example, two tags are used.
The
<tc:treeIndent/> tag, which add an indent besides a node
and
<tc:treeLabel value="#{node.userObject.name}"/>, which contain the
String for the label. Notice that 'node' is the value of the
var attribute from the tree tag.