0 Replies Latest reply on Nov 5, 2007 6:16 PM by Rob Conaway

    DND with ScrollableDataTable

    Rob Conaway Newbie

      I'm trying to use drag and drop with a rich:scrollableDataTable. I frequently get this message when I try to drag a row from the table:

      java.io.NotSerializableException: org.richfaces.model.selection.SelectionRange

      This only happens if I select the row by clicking it then try to drag it. I think that the DND is trying to drag a SelectionRange instead of the actual component in the row.

      How do I prevent this error?


      Here is the table code:

       var='av' sortMode='multi'
       rows='10' height='100px'
       <f:facet name='header'>
       <h:outputText value='Available' />
       <rich:dragSupport dragIndicator=":indicator"
       dragType="AVAILABLE" dragValue="#{av}">
       <rich:dndParam name="label" value="#{av.english}" />
       <h:outputText value="#{av.english}" />

      Here is the drop support:

       acceptedTypes='AVAILABLE' dropValue='AVAILABLE'
       reRender='available,selected' />