Bonjour

je viens tout just d'essayer d'integrer le dataexporter dans mon code! mais ca ne marche pas!

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
85
86
87
88
89
90
91
92
93
	<p:dataTable id="network" var="car" paginator="true" rows="5"
							value="#{WcellMB.treeSelection}" 
							rendered="#{not empty WcellMB.treeSelection}">
							<f:facet name="head">  
            RESULTAT
        </f:facet>
							<p:column headerText="Provider" id="p" rendered="#{WcellMB.testProvider}">  
            #{car.provider}  
        </p:column>
 
							<p:column headerText="RNC" id="r" rendered="#{WcellMB.testRnc}">  
            #{car.rnc}  
        </p:column>
 
							<p:column headerText="WBTS" id="wb" rendered="#{WcellMB.testWbts}" >  
            #{car.wbts}  
        </p:column>
 
							<p:column headerText="CI" id="c" rendered="#{WcellMB.testCi}">  
            #{car.ci}  
        </p:column>
 
        <p:column headerText="CGI" id="cgi" rendered="#{WcellMB.testCgi}">  
            #{car.cgi}  
        </p:column>
        <p:column headerText="Cellules" id="nc" rendered="#{WcellMB.testNomCell}">  
            #{car.nomCell}  
        </p:column>
 
        <p:column headerText="Label" id="Lab" rendered="#{WcellMB.testLabel}">  
            #{car.label}  
        </p:column>
 
        <p:column headerText="Frequency-Band" id="freq" rendered="#{WcellMB.testFreq}">  
            #{car.frequency_band}  
        </p:column>
 
        <p:column headerText="RAC" id="rac" rendered="#{WcellMB.testRac}">  
            #{car.rac}  
        </p:column>
        <p:column headerText="LAC" id="lac" rendered="#{WcellMB.testLac}">  
            #{car.lac}  
        </p:column>
        <p:column headerText="Network-Id" id="Nid" rendered="#{WcellMB.testNet}">  
            #{car.networkid}  
        </p:column> 
 
						</p:dataTable>
						<h:panelGrid columns="2" style=" text-align: center;">  
    <p:panel header="Export All Data" style=" text-align: center;">  
        <p:commandLink>  
            <p:graphicImage value="/images/excel.png" />  
            <p:dataExporter type="xls" target="network" fileName="rnm" />  
        </p:commandLink>  
 
        <p:commandLink>  
            <p:graphicImage value="/images/pdf.png" />  
            <p:dataExporter type="pdf" target="network" fileName="rnm"/>  
        </p:commandLink>  
 
        <p:commandLink>  
            <p:graphicImage value="/images/csv.png" />  
            <p:dataExporter type="csv" target="network" fileName="rnm" />  
        </p:commandLink>  
 
        <p:commandLink>  
            <p:graphicImage value="/images/xml.png" />  
            <p:dataExporter type="xml" target="network" fileName="rnm" />  
        </p:commandLink>  
    </p:panel>  
 
    <p:panel header="Export Page Data" style=" text-align: center;">  
        <p:commandLink>  
            <p:graphicImage value="/images/excel.png" />  
            <p:dataExporter type="xls" target="network" fileName="rnm" pageOnly="true"/>  
        </p:commandLink>  
 
        <p:commandLink>  
            <p:graphicImage value="/images/pdf.png" />  
            <p:dataExporter type="pdf" target="network" fileName="rnm" pageOnly="true"/>  
        </p:commandLink>  
 
        <p:commandLink>  
            <p:graphicImage value="/images/csv.png" />  
            <p:dataExporter type="csv" target="network" fileName="rnm" pageOnly="true"/>  
        </p:commandLink>  
 
        <p:commandLink>  
            <p:graphicImage value="/images/xml.png" />  
            <p:dataExporter type="xml" target="network" fileName="rnm" pageOnly="true"/>  
        </p:commandLink>  
    </p:panel>  
</h:panelGrid>
Aprés une longue recherche sur internet, j'ai trouvé qu'il faut changé le <h:commandlink> de cet exemple
http://www.primefaces.org/showcase-labs/ui/exporter.jsf
par <p:commandlink>. Mais ca coince toujours! j'ai ajouté les jar necessaires pour l'export Excel
quelqu'un peut m'aider.