2 Replies Latest reply on Nov 8, 2007 8:48 AM by Joseph Ottinger

    dragSupport usage... help!

    Joseph Ottinger Newbie

      I have a datalist in one table, and a scrollable datatable in another... and I'm trying to get it so that I can drag the rows from the scrollable datatable to the datalist. I keep getting a message:

      element [foo:bar] ID was not found in the DOM tree.

      WTF... where do I put this? The examples don't show me what I'm supposed to do here. Any help?

        • 1. Re: dragSupport usage... help!
          Ilya Shaikovsky Master

          include page snippet to your description.

          • 2. Re: dragSupport usage... help!
            Joseph Ottinger Newbie

            Section 1:

            <h:outputLabel for="authors">
            <rich:dropSupport reRender="authors" dropListener="#{addarticlebean.authorDropListener}"
            <h:outputText value="Authors:"/>
            <rich:dataList id="authors" binding="#{addarticlebean.authors}"/>
            <h:message for="authors"/>

            Section 2:

            <rich:scrollableDataTable var="author" value="#{addarticlebean.authorList}">
            <f:facet name="header">
            <h:outputText value="Name"/>
            <rich:dragSupport dragType="author">
            <rich:dndParam name="authorid" value="#{author.id}"/>
            <h:outputText value="#{author.lastname}"/>,
            <h:outputText value="#{author.firstname}"/>

            I wouldn't be surprised if this was a MESS -- after all, this is me trying to figure out what the heck I'm doing.