未从Datatables传递到服务器的数据

未从Datatables传递到服务器的数据,datatables,grails-plugin,Datatables,Grails Plugin,我有一个非常简单的Datatable配置 $("#providerTable").dataTable({ "bLengthChange":false, "bAutoWidth":false, "bProcessing": true, "bServerSide":true, "sAjaxSource":"${createLink(controller: 'authorization', action: 'fetchP

我有一个非常简单的Datatable配置

 $("#providerTable").dataTable({
        "bLengthChange":false,
        "bAutoWidth":false,
        "bProcessing": true,
        "bServerSide":true,
        "sAjaxSource":"${createLink(controller: 'authorization', action: 'fetchProvider')}" ,
        "bInfo": true,
        "fnServerParams": function ( aoData ) {
            aoData.push( { "name": "more_data", "value": "my_value" } );
        },
        "fnInfoCallback": function( oSettings, iStart, iEnd, iMax, iTotal, sPre ) {
            return ("Showing " + iStart +" to "+ iEnd + " of " + iTotal);
        }
    });
除了应该传递给服务器的变量
more_data
没有被传递之外,一切正常。我在服务器端使用Grails,Ajax请求中的快速参数转储会产生以下结果:

wrappedMap=[iSortCol_0:0, sSearch_2:, bRegex:false, sSearch_3:, sSearch_0:, sSearch_1:, sSearch:, iSortingCols:1, mDataProp_0:0, mDataProp_1:1, mDataProp_2:2, mDataProp_3:3, mDataProp_4:4, bSortable_2:true, bSortable_1:true, bSortable_4:true, bSortable_3:true, bSortable_0:true, sColumns:, iColumns:5, _:1347175565036, sSearch_4:, bRegex_2:false, bSearchable_2:true, bSearchable_1:true, bRegex_3:false, bSearchable_0:true, bRegex_4:false, sSortDir_0:asc, iDisplayStart:0, iDisplayLength:10, sEcho:1, bSearchable_4:true, bRegex_0:false, bSearchable_3:true, bRegex_1:false, action:fetchProvider, controller:authorization]
请参阅,没有名为
more\u data
的变量的符号。除了
more\u data
变量外,所有其他默认数据表变量以及控制器和操作名称都将被传递。我会犯什么错误

谢谢

fnServerParams是一个新的1.8.2接口。如果您有1.8.1或更早版本, 没有fnServerParams


升级到1.8.2或更高版本以使用
fnServerParams

您使用的数据表版本是什么?