Bonjour,
J'ai un problème avec le composant DataExporter car il ne s'affiche pas dans ma page web.
J'ai le code suivant:
Le code ajouté dans la page web pour l'exportation du fichier excel:
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 <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:cc="http://java.sun.com/jsf/composite" xmlns:p="http://primefaces.prime.com.tr/ui" xmlns:h="http://java.sun.com/jsf/html"> <!-- INTERFACE --> <cc:interface> <cc:attribute name="fileName" default="SIT"/> <cc:attribute name="target" required="true" type="java.lang.String"/> <cc:attribute name="pageOnly" default="true" type="java.lang.Boolean"/> <cc:attribute name="imageLibrary" default="images"/> </cc:interface> <!-- IMPLEMENTATION --> <cc:implementation> <h:commandLink> <h:graphicImage library="#{cc.attrs.imageLibrary}" name="excel.png"/> <p:dataExporter type="xls" target="#{cc.attrs.target}" fileName="#{cc.attrs.filename}" pageOnly="#{cc.attrs.pageOnly}"/> </h:commandLink> </cc:implementation> </html>Mais je ne trouve rien dans la page web.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 <h:form> <elit:dataExporter target="tb2" fileName="SIT}" imageLibrary="images" pageOnly="false"/> </h:form>
Quelqu'un saurait-il m'indiquer d'où peut venir le problème ?
Merci d'avance pour votre aide.
Partager