Hello,

I have a Problem with the DefaultDataTable and the Export csv. Here is my code:

DefaultDataTable<ProtocolSearchData,String> searchTable = new 
DefaultDataTable<ProtocolSearchData, String>("searchTable",getTableHead(),new 
ProtocolDataSortDataProvider(Collections.EMPTY_LIST),10);
searchTable.addBottomToolbar(new ExportToolbar(searchTable,new 
Model<String>("Export to"),new Model<String>("export")).addDataExporter(new 
CSVDataExporter()));
searchTable.setOutputMarkupId(true);

add(searchTable);

This table will be replaced by submitting an AjaxFallbackButton, so that the 
DataProvider gets an list with some data and not an empty list. My Problem is 
that the bottomtoolbar for exporting a csv ist not rendered. The 
no-records-found toolbar will be rendered.

What is the problem here? Can anyone please help me?



Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport & Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:    +49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com



Reply via email to