This week's book giveaway is in the Cloud/Virtualization forum. We're giving away four copies of Mastering Corda: Blockchain for Java Developers and have Jamiel Sheikh on-line! See this thread for details.
Hello, everyone. I am trying to figure out how to add conditions to a drag/drop event and cancel it if conditions are not right. So far I've not been able to find anything in PrimeFaces documentation.
My markup:
inside my TreeService.java I have the following method, triggered on ajax dragdrop event:
Drag and drop is done by the user. The drag-drop JavaScript is just what gets called when they do it. So to abort a drag-drop operation, the user just releases the mouse button while not positioned over any drop area.
I think there is supposed to be an event that firest to let you know that the drop terminated, but I can't recall what that is.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.