bonjour,
je suis entrain de faire une application jee avec jsf2.0 et je souhaites adapter cette datatable :

http://datatables.net/release-datata...e_sorting.html

je n'ai pas réussi à mettre en œuvre la table extensible.

est ce que vous pouvez m'orienter vers un tutoriel où m'éclaircir comment je dois faire pour la rendre extensible

voici mon code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:h="http://java.sun.com/jsf/html">
    <head>
        <title>DataTables</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 
        <script src="media/js/jquery.js" type="text/javascript"></script>
        <script src="media/js/jquery.dataTables.js" type="text/javascript"></script>
 
        <style type="text/css">
            @import "media/css/demo_table_jui.css";
            @import "media/themes/smoothness/jquery-ui-1.8.4.custom.css";
        </style>
 
        <style>
            *{
                font-family: arial;
            }
        </style>
        <script type="text/javascript" charset="utf-8">
 
 
 
            $(document).ready(function(){
                $('#datatables').dataTable({
                    "sPaginationType":"full_numbers",
                    "aaSorting":[[2, "desc"]],
                    "bJQueryUI":true,
                    "oLanguage": {
                        "sProcessing": "Chargement...",
                        "sLengthMenu": "Afficher _MENU_ Enregistrements",
                        "sZeroRecords": "Aucun élément à afficher",
                        "sInfo": "Page _START_ a _END_ sur _TOTAL_ enregistrements",
                        "sInfoEmpty": "Page 0 de 0 sur 0 entries",
                        "sInfoFiltered": "(filtrer sur _MAX_ total enregistrements)",
                        "sInfoPostFix": "",
                        "sSearch": "Recherche:",
                        "sUrl": "",
                        "oPaginate": {
                            "sFirst":    "Premier",
                            "sPrevious": "Precedent",
                            "sNext":     "Suivant",
                            "sLast":     "Dernier" 
                        }
                    }
 
                });
            })
 
        </script>
 
    </head>
    <body>
        <div>
            <table id="datatables" class="display">
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>Date envoi</th>
                        <th>Date livraison</th>
                        <th>etat</th>
                    </tr>
                </thead>
                <tbody>
                    <c:forEach var="comm" items="#{histCommController.lc}">
                        <tr>
                            <td>#{comm.id}</td>
                            <td>#{comm.dateEnvoi}</td>
                            <td>#{comm.dateLivraisonRecommande}</td>
                            <td>#{comm.etat}</td>  
                        </tr>                  
                    </c:forEach>   
                </tbody>
            </table>
        </div>
    </body>
</html>
Merci