getDropComponent

getDropClientId

public java.lang.String getDropClientId()

The clientId of the UIComponent on which the drop occurred. When the DropEvent is delivered to the drag component, there are no guarantees that the call to getDropComponent() will return the component in its right context, so it's recommended that DragSource event handler implementations get the clientId of the drop component using this method, and call invokeOnComponent or visitTree before retrieving potentially component context-sensitive information, such as attribute values from the component.

Returns:

the clientId of the UIComponent on which the drop occurred. Currently this method returns null and implementations of this class should return the clientId of the component that is the target of the drop .

getDropSite

public abstract java.lang.Object getDropSite()

The drop-target-specific site within the drop component relative to which the drop occurred.

Please note that dropSite==null is a legal value for collection components. dropSite=null and DropOrientation==ON indicates that the drop has happened outside the data portion of the collection component and should be treated as a drop on the entire component Also note that dropSite==null and DropOrientation==AFTER indicates that the drop has happened on an empty collection component and the user intends to append the data.

Returns:

drop-target-specific site identifier relative to which the drop occurred.

getDragClientId

public java.lang.String getDragClientId()

The clientId of the component that initiated this drag operation. When the DropEvent is delivered to the drop component, the ELContext will be setup for the drop component therefore, it's recommended that DropTarget event handler implementations get the clientId of the drag component and call invokeOnComponent or visitTree before retrieving potentially component context-sensitive information, such as attribute values from the drag component.

Returns:

String clientId of the drag component, or null if the drag component is null. Implementations of this class can override this method to return the right value.