<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:r="http://richfaces.org/rich">
<h:head></h:head>
<r:dragIndicator id="ind">
Drag the item to proper area..
</r:dragIndicator>
<h:graphicImage value="../../resources/images/MainMenu_bg.gif" >
<r:dragSource dragIndicator="ind"></r:dragSource>
</h:graphicImage>
</ui:composition>
i use the latest richfaces5 and apply drag and drop functionality into the image. when i try to drag the image MainMenu_bg.gif, nothing happen .it seems that the image is not given the draggable ability at all.
any advice is appreciated .thanks.
Whatever you are putting the drag source into needs to have an id. For some elements (like <r:outputPanel>) this is auto-generated, but with the image you need to set it up manually.