Dandelion Datatables + Spring mvc pagination disables if pipelining is false

余生长醉 提交于 2019-12-02 19:19:15

问题


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.


回答1:


Adding

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

in dispatcher it solved pipelining problem



来源:https://stackoverflow.com/questions/37748231/dandelion-datatables-spring-mvc-pagination-disables-if-pipelining-is-false

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!