Oracle Fusion Middleware Tag Reference for Oracle ADF Faces 12c (12.2.1.4.0) E81455-03

# <af:componentDragSource>

componentDragSource componentdragsource

This tag allows the enclosing component to be draggable. Note that af:componentDragSource only supports the MOVE action.

af:componentDragSource supports discriminant attribute. Drag and drop can only be performed between compatible drag sources and drop targets, when there are several drop targets and drag sources, you can restrict valid combinations by using discriminant values.

This example allows the <af:outputText> to be dragged

<af:outputText value="Drag Me"> <af:componentDragSource discriminant="alpha"/> </af:outputText>

And this example allows the af:panelGroupLayout to be a drop target for a component. Notice that it has the same discriminant value as specified in af:componentDragSource

<af:panelGroupLayout> <af:dropTarget actions="MOVE dropListener="#{dropHandler.handleComponentMove}"> <af:dataFlavor flavorClass="javax.faces.component.UIComponent" discriminant="alpha"/> </af:dropTarget> </af:panelGroupLayout>

## Attributes

Name | Type | Supports EL? | Description
--- | --- | --- | ---

id | String | no | the identifier for the tag. The identifier must follow a subset of the syntax allowed in HTML: Must not be a zero-length String First character must be an ASCII letter (A-Za-z) or an underscore ('_') Subsequent characters must be an ASCII letter or digit (A-Za-z0-9), an underscore ('_'), or a dash ('-')