Details
Description
DisplayTag allows for extending the export formats by implementing own ExportViews.
It would also be nice to have a possibility to customize these export views. For instance, JExcel-base Excel export could require a link to the template Excel file. Or, export rendering may need some additional parameters not contained in the table model data. Finally, sometimes it is nice to have page context in the export view (for instance, to be able to identify user that is requesting an export - for logging or charging some fee :) ).
The easiest solution is to make TableProperties.getProperty(String key) public and switch from Properties to Map in the backing object. This would allow JSP pages use display:setProperty to provide whatever data they want to export views.
Currently, I have to use a reflection-based hack (with setAccessible(true)) to access getProperty(...) method.
Thank you for your time.
It would also be nice to have a possibility to customize these export views. For instance, JExcel-base Excel export could require a link to the template Excel file. Or, export rendering may need some additional parameters not contained in the table model data. Finally, sometimes it is nice to have page context in the export view (for instance, to be able to identify user that is requesting an export - for logging or charging some fee :) ).
The easiest solution is to make TableProperties.getProperty(String key) public and switch from Properties to Map in the backing object. This would allow JSP pages use display:setProperty to provide whatever data they want to export views.
Currently, I have to use a reflection-based hack (with setAccessible(true)) to access getProperty(...) method.
Thank you for your time.