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}"
            acceptedTypes="author">
            <h:outputText value="Authors:"/>
            </rich:dropSupport>
            </h:outputLabel>
            <rich:dataList id="authors" binding="#{addarticlebean.authors}"/>
            <h:message for="authors"/>

            Section 2:

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

            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.