我正在使用JQuery Datatable将数据显示到grid.when我试图通过选择所有选项来访问所有数据。我每次都会收到一个错误。
$(document).ready(function () {
$("#generalreport").dataTable({
"bServerSide": true,
"sScrollY": "370px",
"sAjaxSource": "ajaxSearchGeneralReport.action",
"bProcessing": true,
"sPaginationType": "full_numbers",
"bJQueryUI": true,
"bLengthChange": true,
"iDisplayLength" : -1,
"aLengthMenu": [[50,100,300,-1],[50,100,300,'All']],
"sDom": 'T<"clear"><"H"lfr>t<"F"ip>',
"oTableTools": {
"sSwfPath": "media/swf/copy_csv_xls_pdf.swf"
}
});
});
ava.lang.IllegalArgumentException: fromIndex(0) > toIndex(-1)
at java.util.SubList.<init>(AbstractList.java:604)
at java.util.AbstractList.subList(AbstractList.java:468)
at x.y.z.action.GeneralReportAction.execute(GeneralReportAction.java:119)