rich:nodeSelectListener

Component identification parameters

Name | Value
--- | ---
listener-class | org.richfaces.event.NodeSelectedListener
event-class | org.richfaces.event.NodeSelectedEvent
tag-class | org.richfaces.taglib.NodeSelectListenerTag

## Creating the Component with a Page Tag

To create the simplest variant on a page use the following syntax:

Example:

    ...
    	<rich:nodeSelectListener type="demo.Bean"/>
    ...

## Creating the Component Dynamically Using Java

Example:

    package demo;
    public class ImplBean implements org.richfaces.event.NodeSelectListener{
    	...
    }

    import demo.ImplBean;
    ...
    ImplBean myListener = new ImplBean();
    ...

## 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
    	}
    ...
    }

## Look-and-Feel Customization

<rich:nodeSelectListener> has no skin parameters and custom style classes, as the component isn't visual.