无法自动调整 p:dataExporter 中列的大小
Could Not Auto-size Column in p:dataExporter
我正在尝试使用 PrimeFaces DataExporter 导出 xlsxstream
类型的文件,但我似乎遇到了这个错误:
WARNING: Could not auto-size column. Make sure the column was tracked prior to auto-sizing the column.
java.lang.IllegalStateException: Could not auto-size column. Make sure the column was tracked prior to auto-sizing the column.
at org.apache.poi.xssf.streaming.SXSSFSheet.autoSizeColumn(SXSSFSheet.java:1606)
at org.apache.poi.xssf.streaming.SXSSFSheet.autoSizeColumn(SXSSFSheet.java:1560)
at org.primefaces.component.export.ExcelExporter.export(ExcelExporter.java:85)
at org.primefaces.component.export.DataExporter.processAction(DataExporter.java:145)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
...
知道如何调试它,或者可能是什么原因吗?
向 PrimeFaces 报告的错误:https://github.com/primefaces/primefaces/issues/4034
我为 PF 6.3 修复了它:https://github.com/primefaces/primefaces/pull/4035
我正在尝试使用 PrimeFaces DataExporter 导出 xlsxstream
类型的文件,但我似乎遇到了这个错误:
WARNING: Could not auto-size column. Make sure the column was tracked prior to auto-sizing the column.
java.lang.IllegalStateException: Could not auto-size column. Make sure the column was tracked prior to auto-sizing the column.
at org.apache.poi.xssf.streaming.SXSSFSheet.autoSizeColumn(SXSSFSheet.java:1606)
at org.apache.poi.xssf.streaming.SXSSFSheet.autoSizeColumn(SXSSFSheet.java:1560)
at org.primefaces.component.export.ExcelExporter.export(ExcelExporter.java:85)
at org.primefaces.component.export.DataExporter.processAction(DataExporter.java:145)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
...
知道如何调试它,或者可能是什么原因吗?
向 PrimeFaces 报告的错误:https://github.com/primefaces/primefaces/issues/4034
我为 PF 6.3 修复了它:https://github.com/primefaces/primefaces/pull/4035