DisplayTag

Allow ExportView customization

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Trivial Trivial
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: TBD
  • Component/s: Export
  • Labels:
    None

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.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:

Time Tracking

Estimated:
15m
Original Estimate - 15 minutes
Remaining:
15m
Remaining Estimate - 15 minutes
Logged:
Not Specified
Time Spent - Not Specified