JBoss.orgCommunity Documentation

Chapter 15. Drag and drop

15.1. <rich:dragSource>
15.1.1. Basic usage
15.1.2. Dragging an object
15.1.3. Reference data
15.2. <rich:dropTarget>
15.2.1. Basic usage
15.2.2. Handling dropped data
15.2.3. Reference data
15.3. <rich:dragIndicator>
15.3.1. Basic usage
15.3.2. Styling the indicator
15.3.3. Reference data

Documentation in development

Some concepts covered in this chapter may refer to the previous version of Richfaces, version 3.3.3. This chapter is scheduled for review to ensure all information is up to date.

Read this chapter for details on adding drag and drop support to controls.

The <rich:dragSource> behavior can be added to a component to indicate it is capable of being dragged by the user. The dragged item can then be dropped into a compatible drop area, designated using the <rich:dropTarget> behavior.

The <rich:dropTarget> behavior can be added to a component so that the component can accept dragged items. The dragged items must support the <rich:dragSource> behavior, and be of a compatible drop type.

The <rich:dragIndicator> component defines a graphical element to display under the mouse cursor during a drag-and-drop operation.