form.addError("validation.error.nothingToExport");
return;
}
final String filename = "ProjectForge-Kost1Export_" + DateHelper.getDateAsFilenameSuffix(new Date()) + ".xls";
final ExportWorkbook xls = new ExportWorkbook();
final ContentProvider contentProvider = new MyXlsContentProvider(xls);
xls.setContentProvider(contentProvider);
final ExportSheet sheet = xls.addSheet(PFUserContext.getLocalizedString("fibu.kost1.kost1s"));
final ExportColumn[] cols = new ExportColumn[] { //
new I18nExportColumn(Col.KOST, "fibu.kost1", MyXlsContentProvider.LENGTH_KOSTENTRAEGER),
new I18nExportColumn(Col.DESCRIPTION, "description", MyXlsContentProvider.LENGTH_STD),