6.7.3. < rich:dragListener > 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.3. < rich:dragListener > available since 3.1.0

expand all

#### 6.7.3.1. Description

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

#### 6.7.3.2. Key Features

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

#### 6.7.3.3. Details of Usage

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

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

The typical variant of using:

    ...

    <h:panelGrid id="dragPanel">

        <rich:dragSupport dragType="item">

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

        </rich:dragSupport>

        <!--Some content to be dragged-->

    </h:panelGrid>

    ...

Java bean source:

    package demo;

    import org.richfaces.event.DragEvent;

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

    ...

        public void processDrag(DragEvent arg0){

            //Custom Developer Code

        }

    ...

    }

#### 6.7.3.4. Reference Data

Table of <rich:dragListener> attributes.

Table 6.70. Component Identification Parameters

Name | Value
--- | ---
listener-class | org.richfaces.event.DragListener
event-class | org.richfaces.event.DragEvent
tag-class | org.richfaces.taglib.DragListenerTag

- Prev6.7.2. < rich:dragSupport > ...
- Top of page
- Front page
- Next6.7.4. < rich:dropListener > ...