webuijsf
Tag treeNode2


An Ajax based tree node component. This component could either be a leaf node or a non leaf node in which case it can have one or more children. Nodes can be selected by setting the {@code selected} property to true, which may be bound to a model value. Action listeners may be registered individually each node to indicate node selection. Action listeners may also be regsitered to indicate a node toggle. This would be one way of loading child nodes when the user clicks on a node's toggle icon. Note that for this to work, the Tree2 components of which this node is a child should have the "loadOnExpand" property set to "true".


Tag Information
Tag Classcom.sun.webui.jsf.component.TreeNode2Tag
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.
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.

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.

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

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.