tell me more icon Tags for Enabling a Component as a Drag Source

ADF Faces provides two tags for declaratively enabling a component as a drag source, namely, af:attributeDragSource and af:componentDragSource. The tags are nested within those components you wish to enable as drag source components. For example:

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

The af:attributeDragSource tag lets you specify a component attribute to use as the drag source. For example, if the component is af:outputText, as shown here:

<af:outputText value="Home">

..to enable the component and its value attribute as the drag source, you would embed af:attributeDragSource within af:outputText and specify value as the drag attribute, as shown next:

                               
<af:outputText value="Home">
  <af:attributeDragSource attribute="value"/>
                                
</af:outputText>

To specify a data component that uses a collection model (such as af:table and af:tree) as the drag source, use the af:collectionDragSource tag. For details on how to use the tag, see the ADF Faces Tag Reference documentation.

Copyright © 1997, 2009, Oracle. All rights reserved.

false ,,,,,,,,,,,,,,,