This content has been marked as final.
Show 3 replies
-
1. Re: Drag and Drop with multiple dragTypes
michpetrov Aug 21, 2013 3:59 AM (in response to umut)There is no such option but if you tell us your problem maybe we can find a solution. What do you need multiple dragtypes for?
-
2. Re: Drag and Drop with multiple dragTypes
umut Aug 22, 2013 11:36 AM (in response to umut)I have a dynamic Drop Matrix 4x2 / nx2 .
Each Box accept one Typ.
The elements of the Drag Datatable can have n types.
If the Draged Element contains the type of the associated Drop Box , it should be possible to drop else not.
-
3. Re: Drag and Drop with multiple dragTypes
bleathem Aug 23, 2013 1:45 PM (in response to umut)The dropTarget can have a list of types, but the dragSource can have only a single type. You should file a jira feature request asking for the dragSource to work with a list of types.
This should be simple to implement, involving:
- A js change here:
- A change to the dragSource component attribute type here:
- A change to the drageSource renderer here:
- https://github.com/richfaces/richfaces/blob/master/framework/src/main/java/org/richfaces/ui/drag/dragSource/DragSourceRenderer.java#L58
- mimicking what the dropTarget does here:
- https://github.com/richfaces/richfaces/blob/master/framework/src/main/java/org/richfaces/ui/drag/dropTarget/DropTargetRenderer.java#L140
If you want to make these changes and create a github pull request, that would be awesome:
https://community.jboss.org/wiki/GuideToUsePullRequestsWithGitHubAndJIRA