0 Replies Latest reply on Jun 7, 2007 3:30 PM by Cliff Wiggs

    Customizing RichIndicator

    Cliff Wiggs Newbie

      I love the default Indicator except that i am using it to display an image instead of text.

      currently I am doing it this way

      <rich:dragIndicator id="indicator"></rich:dragIndicator>
      ...
      <rich:dragSupport dragIndicator=":form:indicator" dragType="unit" dragValue="#{unit.name}">
       <rich:dndParam name="label" value="<img src='#{unit.image}'>" />
      </rich:dragSupport>
      


      I don't like writing HTML code inside the dndParam. I would rather put an h:graphicImage inside of the dragIndicator and have it access the dndParam. something like this

      <rich:dragIndicator id="indicator">
       <h:graphicImage value="#{label}"/>
      </rich:dragIndicator>
      ...
      <rich:dragSupport dragIndicator=":form:indicator" dragType="unit" dragValue="#{unit.name}">
       <rich:dndParam name="label" value="#{unit.image}" />
      </rich:dragSupport>
      


      1)Is there a syntax available that would allow me to do this? Can I access dndParam's from within the dragIndicator

      2)The example code from the Developers Guide doesn't produce the result I would expect. If I wanted to write jsf code to look like the default drag indicator (ie image on left, label on the right of a box with a slight shadow)
      [img]http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone/docs/devguide/img/dragIndicator1.gif[/img] what would that code look like? That example would tell me everything i need to know about the dragIndicator