jsf - p:dataExporter throws java.lang.NoClassDefFoundError: com/lowagie/text/phrase -


i tried use data exporter control of primefaces 3.2. following code:

<p:commandlink value="export" ajax="false">         <p:dataexporter type="xls" target="dtable" filename="myfile" />       </p:commandlink> <p:datatable id="dtable" ........../> 

when click on export link, following error:

java.lang.noclassdeffounderror: com/lowagie/text/phrase 

i downloaded itext jar 5.2.1 , included in application, still same error. how solve it?

try itext 2.1.7 not 5.2.1. http://olex.openlogic.com/packages/itext/2.1.7

i think there licence conflicts. primefaces uses 2.1.7

for excel export need apache poi. try 3.7: http://archive.apache.org/dist/poi/release/bin/

edit

(you need poi-3.7*.jar , poi-ooxml-3.7*.jar)


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -