蒲公英Datatables +如果流水线错误,则弹簧mvc页面禁用 [英] Dandelion Datatables + Spring mvc pagination disables if pipelining is false
问题描述
我正在尝试在我的一个项目中使用数据表。如果我正在删除 pipelining =truepipesize =3
,那么分页不会来,如果我这样做,则以JSON格式获取所有数据。
< datatables:table id =lonlatTableurl =getLatLonListserverSide =truepipelining =truepipeSize =3row =latlonrowIdBase =idrowIdPrefix =latlon_displayLength =10lengthMenu =10,15,25,50,100,200,500,700,1000jqueryUI =true
filterable =truesortable =true processing =truescrollX =trueautoWidth =truepageable =truepaginationType =full_numbersstateSave =falsedeferRender =true>
我使用蒲公英0.10.0 时该怎么办? / p>
我已经高达1.1.0,但还是没有运气。我发现它不是生成 pipelining.js。
在较旧版本的蒲公英分页中,没有任何问题。
编辑:
添加
< mvc:resources mapping =/蒲公英/ **location =/蒲公英//>
在调度程序中解决了流水线问题,但现在它失败了
TypeError:$ .fn.dataTable.Api未定义
请提供解决方案,因为项目正在延迟。
添加
< mvc:resources mapping =/蒲公英/ **location =/蒲公英//>
在调度程序中解决流水线问题
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" >
What should I do as I am using Dandelion 0.10.0.
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.
Edit:
Adding
<mvc:resources mapping="/dandelion/**" location="/dandelion/" />
in dispatcher it solved pipelining problem but now it fails with
TypeError: $.fn.dataTable.Api is undefined
Please provide solution because project is delaying.
Adding
<mvc:resources mapping="/dandelion/**" location="/dandelion/" />
in dispatcher it solved pipelining problem
这篇关于蒲公英Datatables +如果流水线错误,则弹簧mvc页面禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!