2

When my dataTable is empty worning appears: "DataTables warning (table id = 'someId): Requested unknown parameter '1' from the data source for row 0". When there is some data everething is ok. I use JSF 2.1 component for creating my dataTable; This is my JQuery code:

    $(document).ready(function() {
        $('.examDataTable').dataTable({
            "bProcessing" : true,
            "bFilter" : false,
            "bSort" : false,
            "bInfo" : false,
            "bAutoWidth" : false,
            "aLengthMenu": [1, 3, 5],
            "iDisplayLength" : 3,
            "oLanguage": {
                "sLengthMenu": "#{msg['JQUERY_DTABLE_sLengthMenu']}",
                "sZeroRecords": "#{msg['JQUERY_DTABLE_sZeroRecords']}",
                "sProcessing": "#{msg['JQUERY_DTABLE_sProcessing']}",
                "sEmptyTable": '',
                "sInfoEmpty": '',
                "oPaginate" : {
                    "sPrevious" : "#{msg['JQUERY_DTABLE_sPrevious']}",
                    "sNext" : "#{msg['JQUERY_DTABLE_sNext']}"
                },
            },
        });
    });
4

0 回答 0