[richfaces-issues] [JBoss JIRA] Updated: (RF-4410) dragAndDrop: unnecessary events is fired.
Nick Belaevski (JIRA)
jira-events at lists.jboss.org
Tue Dec 21 13:16:18 EST 2010
[ https://issues.jboss.org/browse/RF-4410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nick Belaevski updated RF-4410:
-------------------------------
Assignee: Prabhat Jha (was: Nick Belaevski)
Fix Version/s: 4.0.0.CR1
(was: Future_4.X)
> dragAndDrop: unnecessary events is fired.
> -----------------------------------------
>
> Key: RF-4410
> URL: https://issues.jboss.org/browse/RF-4410
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-drag/drop
> Affects Versions: 3.2.2
> Environment: 3.2.2.CR3
> Reporter: Alexander Dubovsky
> Assignee: Prabhat Jha
> Fix For: 4.0.0.CR1
>
>
> Code:
> <html>
> <head>
> <title>DragAndDrop</title>
> <style>
> .styleDrag {
> border-width: 3px;
> border-color: FF3300;
> width: 50px;
> height: 50px;
> }
> .styleDrop {
> border-width: 3px;
> border-color: 66CC33;
> width: 50px;
> height: 50px;
> }
> </style>
> <script>
> DnD.CLIENT_VALIDATION_OFF = false;
>
> function writeLog(message) {
> console.log(message);
> }
> </script>
> </head>
> <body>
> <f:view>
> <h:form>
> <rich:panel styleClass="styleDrag">
> <rich:dragSupport dragType="dragType"
> onbeforedomupdate="writeLog('drag: onbeforedomupdate')"
> oncomplete="writeLog('drag: oncomplete')"
> ondragend="writeLog('drag: ondragend')"
> ondragstart="writeLog('drag: ondragstart')"
> ondropout="writeLog('drag: ondropout')"
> ondropover="writeLog('drag: ondropover')">
> </rich:dragSupport>
> </rich:panel>
>
> <rich:panel styleClass="styleDrop">
> <rich:dropSupport acceptedTypes="dragType"
> onbeforedomupdate="writeLog('drop: onbeforedomupdate')"
> oncomplete="writeLog('drop: oncomplete')"
> ondragenter="writeLog('drop: ondragenter')"
> ondragexit="writeLog('drop: ondragexit')"
> ondrop="writeLog('drop: ondrop')"
> ondropend="writeLog('drop: ondropend')">
> </rich:dropSupport>
> </rich:panel>
> </h:form>
> </f:view>
> </body>
> </html>
> # Open page
> # Click on Green (Drop zone) square
> Result: "ondropend" is fired - it is unnecessary event.
> # Drag red (Drag zone) square on Drop square (do not throw mouse button)
> Result: ondropover, ondragenter, ondropout, ondragexit, ondropover, ondragenter.... events are fired - all events except 1th and 2th (ondropover, ondragenter) are unnecessary.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list