svenmeier / wicket-dnd

Wicket drag-and-drop
20 stars 14 forks source link

Multiple DragSources/DropTargets could use id or name #3

Closed RobAu closed 10 years ago

RobAu commented 11 years ago

When adding multiple DragSources to a component, it is not very easy to determine which one you want to test. If they would be enhanced to have an "id" or "name" member, it is easier to retrieve the correct behavior when writing a test.

svenmeier commented 11 years ago

I don't think multiple DragSources on a single component are supported, are they? Do you mean DropTargets?

RobAu commented 11 years ago

They are :) And this is very useful too. I have list with many items, I want to be able to drag the title, and also a field of a listitem. I attach the DragSource to the listcontainer, with different selectors to select either the title, of the field.

I am not sure if multiple DropTargets make sense though.

svenmeier commented 10 years ago

DragSources are now identified by the behaviorId, so now multiple DragSources on a single component are allowed. I'm not sure this helps you in your tests, but please create a new ticket with a quickstart if you think this issue can still be improved.