<af:componentDragSource>

componentDragSource component drag source


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

Example:

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

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

</source>

And this example allows the af:panelGroupLayout to be a drop target for a component.

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

</source>