Richfaces drag and drop object not defined?

谁都会走 提交于 2019-12-11 06:11:24

问题


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> 

回答1:


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?




回答2:


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&cid=289435 for more information.

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



来源:https://stackoverflow.com/questions/1501169/richfaces-drag-and-drop-object-not-defined

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!