wicket-dnd doesn't change the HTML markup as popular Javascript
libraries do.
Instead the markup must be generated on the server side, as it's done
with Wicket most of the time.
You have to update your component tree in onDrop(), e.g. change models,
persist something to the database. Then update the components view
AjaxRequestTarget#add().
Hope this helps
Sven
Am 27.02.2012 19:21, schrieb Dan12321:
Thank you. I look at example of ExampleLabel. But it do not help so much....
Now, I can drag element, I see that it was dragged and I can drop it on
element, that is allowed by "}.dropCenter("span"));"
Methods "onDrop" (in DropTarget) and "onAfterDrop" (in DragSource) are
called. I use there code, that is in ExampleLabel.
But the dragged element is not moved and it stay on original place.
What I have to do for moving dragged element?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/help-with-drag-and-drop-wicket-dnd-tp4422338p4425523.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]