6 Replies Latest reply on Sep 17, 2007 12:15 PM by Ilya Shaikovsky

    trouble using dndParam inside a dataTable (drag indicator)

    Sebastián Ressi Newbie

      I'm having some problems trying to pass parameters during drag and drop operations.
      I've created a table with draggable rows. The problem is that the parameter I'm passing using dndParam is not rendered, in fact, the default RichFaces indicator is not working properly.
      I've realized that this behavior is the result of using a datatable. How can I solve this?, I need to use a datatable because the data I need for this drag and drop page is dynamically uploaded. Here is the code:

      <rich:dragIndicator id="indicator">
      </rich:dragIndicator>
      
      ................................
      <h:panelGrid align="center">
       <rich:dataTable id="src" columns="1" value="#{agrupaciones.empleados}" var="emp" rows="15">
       <h:column>
       <a4j:outputPanel layout="block">
       <rich:dragSupport dragIndicator="indicator" dragType="emp" dragValue="#{emp}">
       <a4j:actionparam name="empleado" value="#{emp.nro}" />
       <rich:dndParam name="label" type="drag" value="TEST" />
       </rich:dragSupport>
       <h:outputText value="#{emp.apellido}, #{emp.nombre}" styleClass="row"></h:outputText>
       </a4j:outputPanel>
       </h:column>
       </rich:dataTable>
      </h:panelGrid>
      .....................................................
      


      Thanx.