Have you ever thought of what if your displaytag table contain more that 66000 records and you want to export to excel which actually have maximum rows less that that?
I have a solution for you. Solution is to write your customized excel export code and configure it with the display tag.
Display tag actually have a class ExcelView (org.displaytag.export.ExcelView) which is used to create the excel view when you click on the excel link on the screen above/below the table. This ExcelView class internally uses BaseExportView class to generate the excel file. This ExcelView is configured in the displaytag.properties file. The properties is like
export.excel.class=org.displaytag.export.ExcelView
Here you can actually write your own class to generate an excel view as as you want to and then plug that class in the displaytag changing the above property in the displaytag.properties file.
For more details - http://displaytag.sourceforge.net/11/export.html
No comments:
Post a Comment