JBoss.orgCommunity Documentation
The <rich:nodeSelectListener> represents an action listener method that is notified after selection of a node.
The <rich:nodeSelectListener> is used as a nested tag with <rich:tree> and <rich:treeNode> components.
Attribute
"type"
defines the fully qualified Java class name for listener.
This class should implement
org.richfaces.event.NodeSelectedListener
.
interface
The typical variant of using:
...
<rich:tree switchType="server" value="#{project.data}" var="item" nodeFace="#{item.type}">
<rich:nodeSelectListener type="demo.ListenerBean"/>
...
<!-- Tree nodes -->
...
</rich:tree>
...
Java bean source:
package demo;
import org.richfaces.event.NodeSelectedEvent;
public class ListenerBean implements org.richfaces.event.NodeSelectedListener{
...
public void processSelection(NodeSelectedEvent arg0){
//Custom Developer Code
}
...
}
Table of <rich:nodeSelectListener> attributes.
Table 6.103. Component Identification Parameters
Name | Value |
---|---|
listener-class | org.richfaces.event.NodeSelectedListener |
event-class | org.richfaces.event.NodeSelectedEvent |
tag-class | org.richfaces.taglib.NodeSelectListenerTag |