Tobago Components
Tag tree


**** Preliminary. Maybe subject to changed in a future version: Implement a var attribute for the tree like in the sheet (http://issues.apache.org/jira/browse/TOBAGO-18) ****

Renders a tree view.

UIComponentClass: org.apache.myfaces.tobago.component.UITree

RendererType: Tree



Tag Information
Tag Classorg.apache.myfaces.tobago.taglib.component.TreeTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
idfalsetruejava.lang.String

The component identifier for this component. This value must be unique within the closest parent component that is a naming container.

bindingfalsetruejava.lang.String

The value binding expression linking this component to a property in a backing bean.

renderedfalsetruejava.lang.String

Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.

valuefalsetruejava.lang.String

A javax.swing.tree.TreeNode object to use as rootNode in the tree.

statefalsetruejava.lang.String

ValueBindingExpression pointing to a object to save the component's state.

idReferencefalsetruejava.lang.String

Bean property reference to fetch the id for the treeNode's.
Example:
a idReference="userObject.id" try's to invoke <UITreeNode>.getUserObject().getId() to fetch the id.

actionListenerfalsetruejava.lang.String

MethodBinding representing an action listener method that will be notified when this component is activated by the user. The expression must evaluate to a public method that takes an ActionEvent parameter, with a return type of void.

nameReferencefalsetruejava.lang.String

Bean property reference to fetch the label for the treeNode's.
Example:
a idReference="userObject.name" try's to invoke <UITreeNode>.getUserObject().getName() to fetch the label.

requiredfalsetruejava.lang.String

Flag indicating that a value is required. If the value is an empty string a ValidationError occurs and a Error Message is rendered.

showJunctionsfalsetruejava.lang.StringNo Description
selectablefalsetruejava.lang.String

Flag indicating whether or not this component should be render selectable items. Possible values are:

  • multi : a multisection tree is rendered
  • single : a singlesection tree is rendered
  • multiLeafOnly : a multisection tree is rendered, only Leaf's are selectable
  • singleLeafOnly : a singlesection tree is rendered, only Leaf's are selectable
For any other value or if this attribute is omited the items are not selectable.

showRootJunctionfalsetruejava.lang.StringNo Description
disabledReferencefalsetruejava.lang.String

Bean property reference to fetch the disabled state for the treeNode's.
Example:
a disabledReference="userObject.disabled" try's to invoke <UITreeNode>.getUserObject().getDisabled() to fetch the state.

showRootfalsetruejava.lang.StringNo Description
showIconsfalsetruejava.lang.StringNo Description
mutablefalsetruejava.lang.StringNo Description

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.