webuijsf
Tag tree2


The Tree2 component is used to display a tree structure in the rendered HTML page.


Tag Information
Tag Classcom.sun.webui.jsf.component.Tree2Tag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
bindingfalsefalsejava.lang.String A ValueExpression that resolves to the UIComponent that corresponds to this tag. This attribute allows the Java bean that contains the UIComponent to manipulate the UIComponent, its properties, and its children.
htmlTemplatefalsefalsejava.lang.String Alternative HTML template to be used by this component.
selectedNodeIdsfalsefalsejava.lang.String An array of selected nodes. In some cases, only a single node can be selected which specifies that the array contains just one node.
loadOnExpandfalsefalsejava.lang.String Returns true if the tree's children should be loaded when only when the node is expanded by the user. Set to false by default. Once a node's children have been loaded after node expansion they are not reloaded during subsequent collapse/expand cycles. This state is reset of the tree is refreshed.
multipleSelectfalsefalsejava.lang.String Returns true if multiple nodes can be selected at the same time. By default this setting is false and only one tree node can be selected at any given time.
tabIndexfalsefalsejava.lang.String

Position of this element in the tabbing order of the current document. Tabbing order determines the sequence in which elements receive focus when the tab key is pressed. The value must be an integer between 0 and 32767.

toggleActionListenerExpressionfalsefalsejava.lang.String

The toggleActionListenerExpression attribute is used to specify a method to handle the tree node toggle event which is triggered when toggle node is clicked by the user. The toggleActionListenerExpression attribute value must be a Unified EL expression that resolves to a method in a backing bean. The method must take a single parameter that is an ActionEvent, and its return type must be void. The class that defines the method must implement the java.io.Serializable interface or javax.faces.component.StateHolder interface.

toolTipfalsefalsejava.lang.String

Sets the value of the title attribute for the HTML element. The specified text will display as a tooltip if the mouse cursor hovers over the HTML element.

imageURLfalsefalsejava.lang.String

Absolute or relative URL to the image to be rendered for the tree node. Note that you cannot use the imageURL to display a theme image in the tree. You should use an image facet that contains a webuijsf:image or webuijsf:imageHyperlink tag to use a theme image. The imageURL attribute is overridden by the image facet.

When the imageURL attribute is used with the url attribute, the image is hyperlinked.

targetfalsefalsejava.lang.String

The resource at the specified URL is displayed in the frame that is specified with the target attribute. Values such as "_blank" that are valid for the target attribute of the <a> HTML element are also valid for this attribute in the tree components. The target attribute is useful only with the url attribute, and does not apply when a facet is used.

renderedfalsefalsejava.lang.String Use the rendered attribute to indicate whether the HTML code for the component should be included in the rendered HTML page. If set to false, the rendered HTML page does not include the HTML for the component. If the component is not rendered, it is also not processed on any subsequent form submission.
idfalsetruejava.lang.StringNo Description
nodeSelectedActionListenerExpressionfalsefalsejava.lang.String

The nodeSelectedActionListenerExpression attribute is used to specify a method to handle the tree node selection event which is triggered when a node is selected by the user. The nodeSelectedActionListenerExpression attribute value must be a Unified EL expression that resolves to a method in a backing bean. The method must take a single parameter that is an ActionEvent, and its return type must be void. The class that defines the method must implement the java.io.Serializable interface or javax.faces.component.StateHolder interface.

styleClassfalsefalsejava.lang.String CSS style class or classes to be applied to the outermost HTML element when this component is rendered.
selectedfalsefalsejava.lang.String Returns true if this node is selected. False otherwise. Set to false by default.
immediatefalsefalsejava.lang.String

The immediate flag. If set to true, the processing of the node's event will happen ahead of processing other validators and converters present in the page whose components' immediate attributes are not set to true. Tihs attribute will be meaningful only if a page submit occurs.

labelfalsefalsejava.lang.String

Specifies the label for this node. If the url or action attributes are also specified, the text is rendered as a hyperlink. If neither the url or action attributes are specified, the specified text is rendered as static text. Users can click on the text to select the node. The nodeLabel attribute does not apply when the nodeLabel facet is used.

expandedfalsefalsejava.lang.String

Set the expanded attribute to true to display the tree node as expanded when the component is initially rendered. When a node is expanded, its child tree nodes are displayed. By default, nodes are collapsed initially.

stylefalsefalsejava.lang.String CSS style class or classes to be applied to the outermost HTML element when this component is rendered.
visiblefalsefalsejava.lang.String

Indicates whether the accordion component should be viewable by the user in the rendered HTML page. If set to false, the HTML code for the component is present in the page, but the component is hidden with style attributes. By default, this setting is true, so HTML for the component is included and visible to the user. If the accordion component is not visible, it can still be processed on subsequent form submissions because the HTML is present.

urlfalsefalsejava.lang.String

Indicates that the text that is specified with the text attribute should be rendered as a hyperlink that resolves to the specified URL. If the imageURL attribute is used with the url attribute, the image is hyperlinked. The url attribute does not apply to facets.


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.