export to excl

UI Components for JSF
Post Reply
a_van
Posts: 2
Joined: 09 Jul 2009, 20:40

09 Jul 2009, 21:57

I am trying to export a datatasble to excl. i am using poi-2.5.1 final with primefaces ui-0.9. I am getting this exception whenever i click on export button

Caused by: java.lang.NoSuchMethodError: org.apache.poi.hssf.usermodel.HSSFRow.createCell(I)Lorg/apache/poi/hssf/usermodel/HSSFCell;
at org.primefaces.ui.component.export.ExcelExporter.addColumnValue(ExcelExporter.java:70)
at org.primefaces.ui.component.export.ExcelExporter.addColumnHeaders(ExcelExporter.java:65)
at org.primefaces.ui.component.export.ExcelExporter.export(ExcelExporter.java:44)
at org.primefaces.ui.component.export.DataExporter.processAction(DataExporter.java:67)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:771)
at javax.faces.component.UICommand.broadcast(UICommand.java:372)
at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:466)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
... 20 more

Am i using wrong poi jar?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

10 Jul 2009, 23:20

Hi, as stated in PrimeFaces reference documentation, poi version should be 3.2-FINAL.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 56 guests