6.9.6. < rich:nodeSelectListener > available since 3.1.0

### Create new RichFaces Documentation Jira issue

Summary
255 characters left
Description
Environment
This will launch the RichFaces Jira page - to complete your feedback please login if needed, and submit the Jira.

JBoss.org Community Documentation

- Prev
- Next

### 6.9.6. < rich:nodeSelectListener > available since 3.1.0

expand all

#### 6.9.6.1. Description

The <rich:nodeSelectListener> represents an action listener method that is notified after selection of a node.

#### 6.9.6.2. Key Features

- Allows to define some "nodeSelect" listeners for the component

#### 6.9.6.3. Details of Usage

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

        }

        ...

    }

#### 6.9.6.4. Reference Data

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

- Prev6.9.5. < rich:changeExpandListener >...
- Top of page
- Front page
- Next6.10. Rich Output