Hi Christoph,
ExportToolbar#isVisible() is not visible in any of these conditions:
* There are no rows displayed (this is your case)
* There are no data exporters (this is not your case)
* There are no exportable columns (I dont know if this is your case)
If you want the export toolbar to be visible when there are no rows,
please overload ExportToolbar#isVisible(), or file a Jira issue if you
want that configurable.
Thanks,
Jesse
On 23/04/2013 14:54, christoph.ma...@t-systems.com wrote:
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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org