data-export

java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/RichTextString at org.primefaces.component.export.ExporterFactory.getExporterForType

ぃ、小莉子 提交于 2019-12-02 07:16:07
问题 I used the same sample code Primefaces has in its web page: <h:commandLink value="Excel"> <p:dataExporter type="xls" target="dataTable" fileName="boo" pageOnly="true"/> </h:commandLink> But does not work. In Internet Explorer browser gives the following message: Details of the errors of the web page Message: Unexpected call to method or property access. Nothing ever happens in Mozilla Firefox. What might be happening? 回答1: javax.servlet.ServletException: org/apache/poi/ss/usermodel

Primefaces dataExporter and nested dataTable

时光毁灭记忆、已成空白 提交于 2019-12-01 11:20:35
I'm using a dataTable inside another dataTable . When I try to export (in any format) using the dataExporter i got something like: " org.primefaces.component.datatable.DataTable@1b675ca " instead of the inner-dataTable values. Is it a limit of dataExporter ? I have to implement this functionality extending dataExporter ? Any Alternatives? This is limitation of dataExporter you have to make your own exporter to do this. I think it is best to try to override method exportValue from Export class (which is superclass of all custom export classes). Here, if value is not instance of HtmlCommandLink

Primefaces dataExporter and nested dataTable

梦想与她 提交于 2019-12-01 07:51:39
问题 I'm using a dataTable inside another dataTable . When I try to export (in any format) using the dataExporter i got something like: " org.primefaces.component.datatable.DataTable@1b675ca " instead of the inner-dataTable values. Is it a limit of dataExporter ? I have to implement this functionality extending dataExporter ? Any Alternatives? 回答1: This is limitation of dataExporter you have to make your own exporter to do this. I think it is best to try to override method exportValue from Export

p:dataExporter does not recognize p:cellEditor

淺唱寂寞╮ 提交于 2019-11-27 01:13:29
I have an editable <p:dataTable> with <p:cellEditor> and I want to export the content of that table into PDF format using <p:dataExporter> . I have included the itext 2.1.7 jar . I got the output in PDF but it shows the Object#toString() values of all <p:cellEditor> components like so: org.primefaces.component.celleditor.CellEditor@1bd59e1 How do I export the output values of the <p:cellEditor> instead? The <p:cellEditor> is indeed not recognized by the PrimeFaces standard data exporters. I've previously reported this to the PF guys as issue 4013 with an example which not only mentions

p:dataExporter does not recognize p:cellEditor

Deadly 提交于 2019-11-26 09:35:37
问题 I have an editable <p:dataTable> with <p:cellEditor> and I want to export the content of that table into PDF format using <p:dataExporter> . I have included the itext 2.1.7 jar . I got the output in PDF but it shows the Object#toString() values of all <p:cellEditor> components like so: org.primefaces.component.celleditor.CellEditor@1bd59e1 How do I export the output values of the <p:cellEditor> instead? 回答1: The <p:cellEditor> is indeed not recognized by the PrimeFaces standard data exporters