Bonjour,
Je travaille avec; jsf 2.0, primefaces 5.1, hibernate. J'ai besoin de l'outil exporter de primefaces pour exporter un subtable.
J'ai donc ajouter :primefaces-extensions-0.5.1.jar, gson-2.2.2.jar et common-lang3.jar.
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
| <html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions">
......
<p:panel header="Export PDF and Excel">
<p:commandLink id="pdf" ajax="false">
<p:graphicImage value="/img/pdf-icon.png" />
<f:setPropertyActionListener value="false"
/>
<pe:exporter type="pdf" target="playersSubTable"
fileName="PlayersStatistics" subTable="true" />
</p:commandLink>
<p:spacer width="20" />
<p:commandLink id="xls" ajax="false">
<p:graphicImage value="/img/excel.png" />
<f:setPropertyActionListener value="false"
target="#{exporterController.customExporter}" />
<pe:exporter type="xlsx" target="playersSubTable"
fileName="PlayersStatistics" subTable="true" />
</p:commandLink>
</p:panel> |
une erreur se génère lors de l'exécution du projet
javax.faces.view.facelets.TagException: /monprojet/mapage.xhtml @164,55 <pe:exporter> Tag Library supports namespace: http://primefaces.org/ui/extensions, but no tag was defined for name: exporter
Ou est le problème?
merci infiniment pour votre aide
Partager