Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6066

IDataExporter (and CSVDataExporter) does not handle i18n of column headers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 6.21.0
    • None
    • wicket-extensions
    • None
    • All

    Description

      When using the CSVDataExporter, it does not handle i18n of the column headers when using ResourceModel unless the developer does a wrap(new ResourceModel("my.key")) when defining the display model for the column. While this is doable, it would be nice for the exporter to handle the wrapping for them in the case that the developer doesn't do this.

      The IDataExporter interface doesn't provide any component (the table or otherwise) that it could use to wrap the ResourceModel to. Maybe it would be the intent to pass in the DataTable to the constructor of the exporter.?

      Any thoughts on how to best achieve what we are looking to do without looking through the entire codebase and wrapping all of the ResourceModels?

      See attached quickstart to replicate.

      Attachments

        1. Simpsons.csv
          0.3 kB
          Steve Lowery
        2. quickstart.zip
          23 kB
          Steve Lowery

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            slowery23 Steve Lowery
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: