views:

652

answers:

2

Mozilla is spitting out

DnD is not defined

errors on all of my rich:dragSupport and rich:dropSupport tags. When I check out the generated javascript the DnD object is where it should be and things look ok. Any ideas on why my DnD object is not defined? Has anyone come accross gotchas with using richfaces dnd?

We are using Richfaces 3.2.1 (drag and drop started in 3.0.0 acording to docs)

An example of how we are using this:

<a4j:outputPanel><rich:panel>
    <rich:dropSupport dropListener="#{myBean.dropAction}>
        <a4j:actionParam value="#{someData}" name="paramData" />
    </rich:dropSupport>

    <a4j:repeat value="#{myBean.list}" var="item">
        <a4j:outputPanel>
        <rich:panel>
                <rich:dragSupport dragValue="#{someOtherData}">
         <a4j:actionparam value="#{someOtherOtherData}" name="secondParam" />
         <h:outputText value="#{item.name}"></h:outputText>
     </rich:dragSupport>
        </rich:panel>
    </a4j:outputPanel>
    </a4j:repeat>
</rich:panel></a4j:outputPanel>
A: 

My Problem: typo in naming of JBoss portlet deployment xml files

Other things to check (from week of research): Are you deploying the necessary richfaces jar files? Do you have other js scripts that are causing namespace issues like jQuery or prototype?

Adam
A: 

It's an old thread, but my answer is: Inside tag < rich:dragSupport/>, must be included < rich:dndParam>. See http://livedemo.exadel.com/richfaces-demo/richfaces/dragSupport.jsf?tab=usage&amp;cid=289435 for more information.

PD: Sorry for my rustic English, I'm from Argentina...

Gabriel