6.7.4. < rich:dropListener > 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.7.4. < rich:dropListener > available since 3.1.0

expand all

#### 6.7.4.1. Description

The <rich:dropListener> represents an action listener method that is notified after a drop operation.

#### 6.7.4.2. Key Features

- Allows to define some drop listeners for the components with "Drag and Drop" support

#### 6.7.4.3. Details of Usage

The <rich:dropListener> is used as a nested tag with components like <rich:dropSupport> , <rich:tree> and <rich:treeNode> .

Attribute "type" defines the fully qualified Java class name for the listener. This class should implement `org.richfaces.event.DropListener` interface. .

The typical variant of using:

    ...

    <rich:panel style="width:100px;height:100px;">

        <f:facet name="header">Drop Zone</f:facet>

        <rich:dropSupport acceptedTypes="text">

            <rich:dropListener type="demo.ListenerBean"/>

        </rich:dropSupport>

    </rich:panel>

    ...

Java bean source:

    package demo;

    import org.richfaces.event.DropEvent;

    public class ListenerBean implements org.richfaces.event.DropListener{

    ...

        public void processDrop(DropEvent arg0){

            //Custom Developer Code

        }

    ...

    }

#### 6.7.4.4. Reference Data

Table of <rich:dropListener> attributes.

Table 6.71. Component Identification Parameters

Name | Value
--- | ---
listener-class | org.richfaces.event.DropListener
event-class | org.richfaces.event.DropEvent
tag-class | org.richfaces.taglib.DropListenerTag

- Prev6.7.3. < rich:dragListener > ...
- Top of page
- Front page
- Next6.7.5. < rich:dropSupport > ...