Hi, your <td>s have to output their markup id too.
transfer.getData() allways NULL. What should be in transfer?
The transfer objects hold whatever the dragsource puts into it. If you haven't overriden DragSource#onBeforeDrop() this is just the model object of the dragged element. BTW which version are you using? Regards Sven On 02/26/2012 08:22 PM, Dan12321 wrote:
Thanks for answer. Yes, in the first "td" is "span" but in this forum it was formatted and span was not visible. The first td should be:<td>< span wicket:id="aaa" class="aaa">www</td> ------ But I make little modification and html is: <table> <tr> <td>< span wicket:id="aaa" class="aaa">aaa</td> <td>< span wicket:id="bbb" class="bbb">bbb</td> <td>< span wicket:id="ccc" class="ccc">ccc</td> </tr> </table> And in java class was added: Label bbb = new Label("bbb", "bbb"); Label ccc = new Label("ccc", "ccc"); bbb.setOutputMarkupId(true); ccc.setOutputMarkupId(true); container.add(bbb); container.add(ccc); But in the methods is transfer.getData() allways NULL. What should be in transfer? The target element? Is there any way how to know what element was targeted (drop)? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/help-with-drag-and-drop-wicket-dnd-tp4422338p4422742.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org