对p:dataTable中的行重新排序会导致JavaScript“未捕获的类型错误:this.tbody.sortable不是函数”

问题描述

我是初学者。 我有数据表

p:dataTable draggableRows="true" editable="true"

但是它并不真正起作用,我可以在资源管理器开发人员的工具中看到以下javascript错误

Uncaught TypeError: this.tbody.sortable is not a function
    makeRowsDraggable http://localhost:8080/test_app/app/javax.faces.resource/components.js?ln=primefaces&v=6.1:12
    init http://localhost:8080/test_app/app/javax.faces.resource/components.js?ln=primefaces&v=6.1:12
    Class.extend/e[d]</< http://localhost:8080/test_app/app/javax.faces.resource/core.js?ln=primefaces&v=6.1:5
    c http://localhost:8080/test_app/app/javax.faces.resource/core.js?ln=primefaces&v=6.1:5
    createWidget http://localhost:8080/test_app/app/javax.faces.resource/core.js?ln=primefaces&v=6.1:1
    cw http://localhost:8080/test_app/app/javax.faces.resource/core.js?ln=primefaces&v=6.1:1
    <anonymous> http://localhost:8080/test_app/app/suche?execution=e2s4:178
        

我需要链接jquery或其他吗? 我使用以下标签库:

<ui:component xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.org/ui"
    xmlns:composite="http://java.sun.com/jsf/composite">

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)