3 Replies Latest reply on Nov 2, 2007 9:11 AM by David Good

    scrollableDataTable drag and drop

    David Good Newbie

      Adding dragSupport to a scrollableDataTable column gives the error below:

      darg:Element with [j_id_jsp_440369434_2:test:testtext]ID was not found in the DOM tree. Probably element has no client ID or client ID hasn't been written. DnD's disabled. Check please!

      There does indeed appear to be no such element in the DOM. Am I missing something, or is this a bug? (markup below)

       <rich:scrollableDataTable value="#{data}" var="item" rows="25"
       id="test" rowClasses="white,grey" selectedClass="selected">
       <rich:column id="testtext" width="700px">
       <f:facet name="header">
       <h:outputText value="Item" />
       <h:outputText value="#{item}" />

        • 1. Re: scrollableDataTable drag and drop
          David Good Newbie

          I should add that I'm using 3.1.2 GA on JBoss 4.2 in rhws

          • 2. Re: scrollableDataTable drag and drop
            Ilya Shaikovsky Master


            <h:form id="form">
             <rich:dragIndicator id="indicator">
             <f:facet name="Single">
             <h:outputText value="{label}"></h:outputText>
             <a4j:outputPanel id="table">
             <rich:scrollableDataTable value="#{capitalsBean.capitals}" var="cap" width="200px" height="250px">
             <f:facet name="header">
             <h:outputText value="Table Header"></h:outputText>
             <f:facet name="header">
             <h:outputText value="flag"></h:outputText>
             <rich:dragSupport dragType="state" dragValue="#{cap.state}" dragIndicator=":form:indicator">
             <rich:dndParam name="marker">
             <h:graphicImage value="#{cap.stateFlag}"></h:graphicImage>
             <rich:dndParam name="label" value="TEST"></rich:dndParam>
             <h:graphicImage value="#{cap.stateFlag}">

            works fine for me

            • 3. Re: scrollableDataTable drag and drop
              David Good Newbie

              Got mine to work by wrapping rich:dragSupport inside an <a4j:outputPanel>, as in your example. Thanks, Ilya!