Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf 如何使用RichFaces创建可拖动组件?_Jsf_Drag And Drop_Richfaces_Ajax4jsf - Fatal编程技术网

Jsf 如何使用RichFaces创建可拖动组件?

Jsf 如何使用RichFaces创建可拖动组件?,jsf,drag-and-drop,richfaces,ajax4jsf,Jsf,Drag And Drop,Richfaces,Ajax4jsf,我尝试制作可拖动组件,为此,我基于以下示例: 我从这个示例开始,但是组件没有给出任何可拖动的指示: <!---------------- Indicator --------> <rich:dragIndicator id="indicator" /> <h:form> <table border="0"> <tr> <td vali

我尝试制作可拖动组件,为此,我基于以下示例:

我从这个示例开始,但是组件没有给出任何可拖动的指示:

    <!---------------- Indicator -------->
    <rich:dragIndicator id="indicator" />
    <h:form>
        <table border="0">
            <tr>
                <td valign="top"><rich:panel>
                    <rich:tree>
                        ...
                    </rich:tree>
                </rich:panel></td>
                <td valign="top"><rich:panel id="afficherTest">
                    <rich:dataGrid value="#{afficherTestBean.listTest}" var="test"
                        columns="2" elements="6" width="600px">
                        <rich:panel style="cursor: move">
                                   <!---------------draggable Zone-------------------->
                            <rich:dragSupport dragIndicator=":indicator"
                                dragType="#{test.nomTest}" dragValue="#{test.nomTest}">
                                <rich:dndParam name="label" value="#{test.nomTest}" />
                            </rich:dragSupport>
                            <f:facet name="header">
                                <h:outputText value="#{test.categorie}"></h:outputText>
                            </f:facet>
                            <h:panelGrid columns="2">
                                <h:outputText value="Nom Test:" styleClass="label"></h:outputText>
                                <h:outputText value="#{test.nomTest}" />
                                <h:outputText value="Description Test:" styleClass="label"></h:outputText>
                                <h:outputText value="{test.description}" />
                                <a4j:commandLink value="Ajouter"></a4j:commandLink>
                            </h:panelGrid>

                        </rich:panel>
                        <f:facet name="footer">
                            <rich:datascroller></rich:datascroller>
                        </f:facet>

                    </rich:dataGrid>
                </rich:panel></td>
            </tr>
        </table>

    </h:form>

    </html>

请帮助我创建可拖动组件,我需要您的帮助:“

我的代码中是否有错误?如果该示例不适用于您,则可能是幕后的问题。有没有js错误?我对DnD有自己的问题,并在回答时做了记录: