Author: abelevich
Date: 2010-12-03 05:53:37 -0500 (Fri, 03 Dec 2010)
New Revision: 20336
Modified:
sandbox/trunk/ui/drag-drop/ui/src/main/java/org/richfaces/renderkit/DropBehaviorRendererBase.java
Log:
event according to spec
Modified:
sandbox/trunk/ui/drag-drop/ui/src/main/java/org/richfaces/renderkit/DropBehaviorRendererBase.java
===================================================================
---
sandbox/trunk/ui/drag-drop/ui/src/main/java/org/richfaces/renderkit/DropBehaviorRendererBase.java 2010-12-03
10:53:01 UTC (rev 20335)
+++
sandbox/trunk/ui/drag-drop/ui/src/main/java/org/richfaces/renderkit/DropBehaviorRendererBase.java 2010-12-03
10:53:37 UTC (rev 20336)
@@ -86,7 +86,7 @@
public Map<String, Object> getOptions(ClientBehaviorContext behaviorContext,
ClientBehavior behavior) {
Map<String, Object> options = new HashMap<String, Object>();
-
+
if(behavior instanceof ClientDropBehavior) {
ClientDropBehavior dropBehavior = (ClientDropBehavior)behavior;
options.put("acceptedTypes", dropBehavior.getAcceptedTypes());
@@ -110,10 +110,8 @@
ClientDragBehavior dragBehavior = getDragBehavior(target,
"mouseover");
if(dragBehavior != null) {
DropEvent dropEvent = new DropEvent(dropSource, dropBehavior);
- dropEvent.setDragSource(target);
- dropEvent.setDragValue(dragBehavior.getDragValue());
- dropEvent.setDropValue(dropBehavior.getDropValue());
- dropEvent.setAcceptedTypes(dropBehavior.getAcceptedTypes());
+ dropEvent.setDragSource(dragBehavior);
+ dropEvent.setDragComponent(target);
queueDropEvent(dropEvent);
} else {
//TODO: log
Show replies by date