Drag & Drop event SourceComponent id

Hi

We use an implementation of drag and drop (not the add-on) using drophandler on a dynamically created table. Everything seems to work ok but we need to get the ID of the dynamically created table in the drophandler event. However despite setting the ID of the table in the code when it is programmatically created and added to the screen, the ID is always null under the event.getTransferable().getSourceComponent().getId(). Any help would be appreciated.

The code to create the table:

image

The drophandler event:
image

Sample project:
draganddropv1.zip (1.6 MB)

Thank in advance.
David

Hi,

Solution, is to set the id on the unwrapped vaadin table directly, as illustrated below
image