JBoss.orgCommunity Documentation
The <rich:dropListener> represents an action listener method that is notified after a drop operation.
Allows to define some drop listeners for the components with "Drag and Drop" support
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
}
...
}
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 |