ERROR DataTables warning: table id=bibliografiaTable - Requested unknown parameter '0' for row 0, co

ERROR DataTables warning: table id=bibliografiaTable - Requested unknown parameter '0' for row 0, co

Pablo85Pablo85 Posts: 3Questions: 1Answers: 0

Hello,

I have updated a table and added a control on whether it is empty or not. I do not understand why it gives me the fault. I tried to put an empty column since the presentation was out of tune.

My JSP code:

function cargaBibliografia(){

        <c:if test="${not empty especieData.referenceList}">
        $('#bibliografiaTable').dataTable( {
            'bAutoWidth': false,
            'pagingType': 'simple',
            'aaData': [ 
                        <c:forEach var="tespEolReferenceData"  varStatus="status2" items="${especieData.referenceList}">
                          [
                            <c:if test = "${not empty tespEolReferenceData.uri}">
                                ,'<a href="#" onclick="window.open(\'${tespEolReferenceData.uri}\',\'window\',\'params\')"><c:out value="${tespEolReferenceData.fullReference}" /></a>'
                            </c:if>
                            <c:if test = "${empty tespEolReferenceData.uri}">
                                ,'<c:out value="${tespEolReferenceData.fullReference}" />'
                            </c:if>
                                <c:if test = "${(usuarioSesion.tPerfilUsuPortal == 'EDITOR') || (usuarioSesion.tPerfilUsuPortal == 'ADMINISTRADOR') }">
                                ,'<a href="<portlet:renderURL><portlet:param name="accion" value="verFormModifyRefer"/><portlet:param name="idreference" value="${tespEolReferenceData.idreference}"/><portlet:param name="scientificname" value="${especieData.scientificname}"/><portlet:param name="idTaxon" value="${especieData.taxonid}"/><portlet:param name="filtroBusqueda" value="${filtroBusqueda}"/></portlet:renderURL>"><img title="Modificar/Detalles" src="<spring:message code="rutaResourcesWeb"/>js_css/imgs/ico_modificar_2.png"></a>'
                                ,'<a href="#" onclick="deleteData(this, ${tespEolReferenceData.idreference}, \'${ajaxCallReferDelete}\' )"><img title="Eliminar" src="<spring:message code="rutaResourcesWeb"/>js_css/imgs/ico_eliminar.png"></a>'

                            </c:if> 
                            <c:if test = "${((usuarioSesion.tPerfilUsuPortal != 'ADMINISTRADOR') && (usuarioSesion.tPerfilUsuPortal != 'EDITOR'))}">
                                ,'<a href="<portlet:renderURL><portlet:param name="accion" value="verFormModifyRefer"/><portlet:param name="idreference" value="${tespEolReferenceData.idreference}"/><portlet:param name="idTaxon" value="${especieData.taxonid}"/><portlet:param name="idTaxon" value="${especieData.taxonid}"/><portlet:param name="scientificname" value="${especieData.scientificname}"/><portlet:param name="filtroBusqueda" value="${filtroBusqueda}"/></portlet:renderURL>"><img title="Detalle" src="<spring:message code="rutaResourcesWeb"/>js_css/imgs/ico_modificar_2.png"></a>'
                            </c:if>
                                        ]
                                <c:if test="${!status2.last}">,</c:if>
                        </c:forEach>
                    ],
                'aoColumns': [
                        { 'sTitle': '', "bVisible" : false}
                       ,{ 'sTitle': 'Referencia'}   
                       <c:if test = "${(usuarioSesion.tPerfilUsuPortal == 'EDITOR') || (usuarioSesion.tPerfilUsuPortal == 'ADMINISTRADOR') }">
                            ,{ 'sTitle': '', "bSearchable" : false, width: '50px'}
                            ,{ 'sTitle': '', "bSearchable" : false, width: '50px'}
                        </c:if> 
                        <c:if test = "${((usuarioSesion.tPerfilUsuPortal != 'ADMINISTRADOR') && (usuarioSesion.tPerfilUsuPortal != 'EDITOR'))}">
                            ,{ 'sTitle': '', "bSearchable" : false, width: '50px'}
                        </c:if>
                     ]
                  } );
        </c:if>

    }

This question has an accepted answers - jump to answer

Answers

Sign In or Register to comment.