No Code Drag and Drop for JSF with ADF Faces RC
By Shay Shmeltzer on Oct 24, 2008
While working on one of the demos for OTN, I found out that between the technology preview versions of JDeveloper and the production JDeveloper 11g - making a drag and drop operation in your JSF Web interface just got a lot easier.
Previously you needed 4 tags and a backing bean method - Duncan's blog had an entry with the details.
But Now you do it with 3 tags and no code. All using ADF Faces Operations components
Here is an example:
First add a client attribute to the item which will be the drag source - give it any name you want and a value (which would probably be the same expression language you use as the value for the drag source item).
Next add an Attribute Drag Source tag to your drag source item and in the attribute specify the client attribute you just added.
To finish up add an Attribute Drag Target tag to the item you want to be the destination of the drag operation.
and in the attribute property set the specific attribute you want to change - in this case it would be the value.
The end result code is: