这让我有点疯狂,也许有人对此有所了解。我有一个带有可编辑数据表的 jsp 页面,我希望有以下选项
$("#masterTable").dataTable({
"sDom" : '<"H"flp>t<"F"ip>r',
"bJQueryUI" : true,
"bStateSave" : true,
"bProcessing" :true
}).makeEditable({
"sAddURL" : "manager/add",
"sDeleteURL" : "manager/delete",
"sAddNewRowFormId" : "formAddNewRowId",
"sAddNewRowButtonId" : "btnAddNewRowId",
"sAddNewRowOkButtonId" : "btnAddNewRowOkId",
"sAddNewRowCancelButtonId" : "btnAddNewRowCancelId",
"sDeleteRowButtonId" : "btnDeleteRowId",
"fnOnAdded" : function(){
window.location.replace("/view/master.jsp");
},
"fnShowError" : function(message, action){
switch(action){
case "add":
window.alert("Add Failed. Please check the error log for the exact problem");
break;
case "update":
window.alert("Update Failed. Please check the error log for the exact problem");
break;
case "delete":
window.alert("Delete Failed. Please check the error log for the exact problem");
break;
}
},
"fnOnDeleted" : function(){
window.location.replace("/view/report.jsp");
},
"aoColumns" : [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]
});
但是,当我尝试加载它时,我收到了这个错误:
java.io.IOException: Error: Attempt to clear a buffer that's already been flushed
疯狂的部分是,如果我删除任何两个选项,页面加载正常。哪两个,或者它们在多少行(1或单独),或者它们是否是 .dataTable 或 .makeEditable 的一部分,但如果我留下所有选项,错误都没有关系。表格上可以使用的选项数量是否有一些奇怪的上限?