views:

130

answers:

0

hello, i have jsp and i use datatable (jquery). When i load my page in the console i have this message

Column 3 is not defined

How can I remove this message? It is an error ..?

Thx.. ;)

edit: Script HTML

    <script type="text/javascript" charset="utf-8">
   $(document).ready(function() {
    $('#clientDatatable').dataTable( {
     "bStateSave": false,
     "sPaginationType": "full_numbers",//"two_button", 
     "aaSorting": [[ 1, "desc" ]], 
                 "aoColumns": [
                    { "sType": "string", "bSearchable":0 },
                    { "sType": "string" },
                    { "sType": "string","sWidth":"100px" },
                    { "sType": "string" },
                    { "sType": "string" },
                    { "sType": "string" },
                    { "sType": "date" },
                    { "sType": "date" },
                    { "sType": "html", "bSortable":0, "bSearchable":0 },
                    { "sType": "html", "bSortable":0, "bSearchable":0}
                   ],
                 "oLanguage": {
     "sSearch": "Rechercher",
     "sLengthMenu": "Affiche _MENU_ clients par page",
     "sZeroRecords": "Aucun client trouvé",
     "sInfo": "Affiche _START_ à _END_ sur _TOTAL_ clients",
     "sInfoEmtpy": "Showing _BEGIN_ to _END_ of _TOTAL_ records",
     "sInfoFiltered": "(Filtrées sur _MAX_ clients au total)",
      "oPaginate": {
      "sFirst": "<<<",
      "sNext": "Suivant",
      "sPrevious": "Précédent",
      "sLast": ">>"
     }
    },
     "fnDrawCallback": function() {
       //bind the click handler script to the newly created elements held in the table
      addEvent();
     }
    } );


   } );

  </script>

Table HTML:

    <table  cellpadding="2" cellspacing="2" id="clientDatatable" border="0">
     <thead> 
     <tr>
      <th>&nbsp;</th>
      <th>Name</th>
      <th>Cat.</th>
      <th>Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
      <th>Status&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
      <th>Date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
      <th>Function&nbsp;&nbsp;&nbsp;&nbsp;</th>
      <th>&nbsp;</th>
      <th>&nbsp;</th>
      <th>&nbsp;</th>
     </tr>
     </thead>
    <tbody>
        <%int compteur=0;%>
        <logic:iterate id="client" name="<%=ConstantesRequete.CLE_V_PUBLICATION%>">
            <% compteur++;
            if ((compteur%2)==0) { %>
            <tr class="row1">
            <%}else {%>
            <tr class="row0">
            <%}%>
                <td>
                    <img src='<bean:write name="client" property="cheminIcone"/>'/>
                </td>
                <td>
                    <logic:notEqual name="client" property="statut" value="<%=StatutPublication.EnAttente.getCode()%>">
                        <a href="<%=request.getContextPath()%><bean:write name="client" property="cheminDoc" />" target="_new"><bean:write name="client" property="titre" /></a>
                    </logic:notEqual>
                    <logic:equal name="client" property="statut" value="<%=StatutPublication.EnAttente.getCode()%>">
                        <bean:write name="client" property="titre" />
                    </logic:equal>

                </td>
                <td><bean:write name="client" property="categorie" /></td>              
                <logic:equal name="client" property="type" value="<%=TypePublication.Ponctuelle.getCode()%>">
                    <td title="<%=TypePublication.Ponctuelle.getLibelle()%>"><%=TypePublication.Ponctuelle.getCode()%></td>
                </logic:equal>
                <logic:equal name="client" property="type" value="<%=TypePublication.Reccurente.getCode()%>">
                    <td title="<%=TypePublication.Reccurente.getLibelle()%>"><%=TypePublication.Reccurente.getCode()%></td>
                </logic:equal>
                <logic:equal name="client" property="statut" value="<%=StatutPublication.Publie.getCode()%>">
                    <td title="<%=StatutPublication.Publie.getLibelle()%>"><%=StatutPublication.Publie.getCode()%></td>
                </logic:equal>
                <logic:equal name="client" property="statut" value="<%=StatutPublication.EnAttente.getCode()%>">
                    <td title="<%=StatutPublication.EnAttente.getLibelle()%>"><%=StatutPublication.EnAttente.getCode()%></td>
                </logic:equal>
                <logic:equal name="client" property="statut" value="<%=StatutPublication.Expiree.getCode()%>">
                    <td title="<%=StatutPublication.Expiree.getLibelle()%>"><%=StatutPublication.Expiree.getCode()%></td>
                </logic:equal>
                <td><bean:write name="client" property="user" /></td>
                <td><bean:write name="client" property="dateFin" /></td>
                <td> 

                <a name="modal" href="#contenu" id="<%=request.getContextPath()%>/listDestinataires.do?id=<bean:write name="client" property="id" />"><html:img page="/html/images/group.png" border="0" alt="Destinataires" /></a>
                </td>
                <td>
                    <html:link action="recupPublication" paramName="client" paramProperty="id" paramId="id"><html:img page="/html/images/edit.png" border="0" alt="Modifier" /></html:link>
                </td>
                <td>
                    <a href='javascript:deletePublication("<%=request.getContextPath()%>", "<bean:write name="client" property="id" />","<bean:write name="client" property="titre" />")'><html:img page="/html/images/suppr.png" border="0" alt="Supprimer" /></a>
                </td>
            </tr>
        </logic:iterate>
    </tbody>
</table>