Thanks to Sven, now my DataTable has sorting columns!
However my next step is to add CSV export. I copied the code from the examples
and added
CSVDataExporter c_exp = new CSVDataExporter();
ExportToolbar et = new ExportToolbar(dataTable);
et.addDataExporter(c_exp);
dataTable.addBottomToolbar(new
ExportToolbar(dataTable).addDataExporter(c_exp));
but when I try the app I get the following in the browser window:
java.util.MissingResourceException: Unable to find property:
'datatable.export-file-name'. Locale: null, style: null
at org.apache.wicket.Localizer.getString(Localizer.java:237)
at org.apache.wicket.Localizer.getString(Localizer.java:149)
at org.apache.wicket.model.ResourceModel.getObject(ResourceModel.java:76)
at org.apache.wicket.model.ResourceModel.getObject(ResourceModel.java:33)
at
org.apache.wicket.extensions.markup.html.repeater.data.table.export.ExportToolbar.createExportLink(ExportToolbar.java:202)
...
What part of the examples code did I miss this time?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]