0 Replies Latest reply on Jun 1, 2009 6:17 PM by qqq qqq

    rich:dndParam and s:graphicImage

    qqq qqq Newbie

      Indicator displays properly image only first time.

      <rich:dragIndicator id="indicator">
       <f:facet name="single">
       {dragImage}
       </f:facet>
      </rich:dragIndicator>
      
      <a:outputPanel layout="block">
       <rich:dragSupport dragIndicator="indicator" dragType="pic"
       dragValue="#{file}" >
       <rich:dndParam name="dragImage" >
       <s:graphicImage value="#{imageUtils.scaleImage(file.data)}"/>
       </rich:dndParam>
       </rich:dragSupport>
       <s:graphicImage id="img" value="#{imageUtils.scaleImage(file.data)}"/>
      </a:outputPanel>
      


      If uses h:graphicImage instead of s:graphicImage example works fine.

      <rich:dndParam name="dragImage" >
       <h:graphicImage value="/some_img.gif"/>
      </rich:dndParam>