如果流水线为 false,蒲公英数据表 + Spring mvc 分页将禁用 [英] Dandelion Datatables + Spring mvc pagination disables if pipelining is false
问题描述
我正在尝试在我的一个项目中使用数据表.如果我删除 pipelining="true" pipesize="3"
那么分页不会出现,如果我这样做,它会以 JSON 格式获取所有数据.
I am trying to use datatables in one of my project. If I am removing pipelining="true" pipesize="3"
then pagination is not coming and if I do so it fetches all data in JSON Format.
<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" >
我在使用 Dandelion 0.10.0 时该怎么办.
What should I do as I am using Dandelion 0.10.0.
我已经升级到 1.1.0 但仍然没有运气.我发现它没有生成 pipelining.js.
I have upgeaded to 1.1.0 but still no luck. I have found that it is not generating pipelining.js.
在旧版本的蒲公英分页中没有任何问题.
In older version of dandelion pagination was working without any problem.
添加
<mvc:resources mapping="/dandelion/**" location="/dandelion/" />
在调度程序中它解决了流水线问题,但现在它失败了
in dispatcher it solved pipelining problem but now it fails with
类型错误:$.fn.dataTable.Api 未定义
TypeError: $.fn.dataTable.Api is undefined
由于项目延迟,请提供解决方案.
Please provide solution because project is delaying.
推荐答案
添加
<mvc:resources mapping="/dandelion/**" location="/dandelion/" />
在调度器中它解决了流水线问题
in dispatcher it solved pipelining problem
这篇关于如果流水线为 false,蒲公英数据表 + Spring mvc 分页将禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!