【问题标题】:Dandelion Datatables + Spring mvc pagination disables if pipelining is false如果流水线为假,蒲公英数据表 + Spring mvc 分页将禁用
【发布时间】:2016-06-10 12:24:18
【问题描述】:

我正在尝试在我的一个项目中使用数据表。如果我要删除pipelining="true" pipesize="3",那么分页就不会到来,如果我这样做,它会以 JSON 格式获取所有数据。

<datatables:table id="lonlatTable" url="getLatLonList" serverSide="true" pipelining="true" pipeSize="3" row="latlon" rowIdBase="id" rowIdPrefix="latlon_" displayLength="10" lengthMenu="10,15,25,50,100,200,500,700,1000" jqueryUI="true"
filterable="true" sortable="true" processing="true" scrollX="true"  autoWidth="true" pageable="true" paginationType="full_numbers" stateSave="false" deferRender="true"   >

我在使用蒲公英0.10.0应该怎么做。

我已经升级到 1.1.0 但仍然没有运气。我发现它没有生成pipelining.js.

在旧版本的蒲公英中,分页工作没有任何问题。

编辑:

添加

<mvc:resources mapping="/dandelion/**" location="/dandelion/" />

在调度程序中它解决了流水线问题,但现在它失败了

TypeError: $.fn.dataTable.Api 未定义

由于项目延迟,请提供解决方案。

【问题讨论】:

  • 我应该跳转到 angulr 数据表吗?

标签: jquery spring-mvc datatable pagination dandelion


【解决方案1】:

添加

<mvc:resources mapping="/dandelion/**" location="/dandelion/" />

在调度程序中它解决了流水线问题

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-08-08
    • 2016-09-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-22
    • 1970-01-01
    • 2016-10-16
    相关资源
    最近更新 更多