无法在p:dataExporter中自动调整列大小

问题描述 投票:1回答:1

我正在尝试使用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)
    ...

知道如何调试这个,或者原因可能是什么?

jsf primefaces apache-poi
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.