Caused by: java.util.MissingResourceException: Unable to find property:
'protocolRecord.retentionID'. Locale: null, style: null
        at org.apache.wicket.Localizer.getString(Localizer.java:237)[
269:org.apache.wicket.core:6.5.0]
        at org.apache.wicket.Localizer.getString(Localizer.java:149)[
269:org.apache.wicket.core:6.5.0]
        at org.apache.wicket.model.ResourceModel.getObject(
ResourceModel.java:76)[269:org.apache.wicket.core:6.5.0]
        at org.apache.wicket.model.ResourceModel.getObject(
ResourceModel.java:33)[269:org.apache.wicket.core:6.5.0]
        at org.apache.wicket.extensions.markup.html.repeater.data.
table.export.CSVDataExporter.exportData(CSVDataExporter.
java:198)[271:org.apache.wicket.extensions:6.5.0]
        at org.apache.wicket.extensions.markup.html.repeater.data.
table.export.ExportToolbar$DataExportResourceStreamWriter
.exportData(ExportToolbar.java:343)[271:org.apache.wicket.extensions:6.5.0]
        at org.apache.wicket.extensions.markup.html.repeater.data.
table.export.ExportToolbar$DataExportResourceStreamWriter
.write(ExportToolbar.java:298)[271:org.apache.wicket.extensions:6.5.0]
        at org.apache.wicket.request.resource.ResourceStreamResource$1.
writeData(ResourceStreamResource.java:192)[269:org.apache.wicket.core:6.5.0]
        at org.apache.wicket.request.resource.AbstractResource.
respond(AbstractResource.java:528)[269:org.apache.wicket.core:6.5.0]
        at org.apache.wicket.markup.html.link.ResourceLink.
onResourceRequested(ResourceLink.java:115)[269:org.apache.wicket.core:6.5.0]
        ... 54 more

I.e. this is a request to a IResource, not a page.
Wicket doesn't know anything about the page that created the link to the
resource at this point.

Move your i18n stuff in MyApplication.properties.xml and it should work in
all cases.



On Wed, Apr 24, 2013 at 11:49 AM, <christoph.ma...@t-systems.com> wrote:

> It is in the same package as the class
>
>
> src/main/java/smw/console/frontend/protocol/ProtokollierungPage.properties.xml
>
> The classname is ProtokollierungPage.java
>
> Does the ResourceModel load this properties automatically? Why does it
> show the String from the properties at the Tablehead but throw an exception
> while exporting the data?
>
>
> 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
>
>
> -----Ursprüngliche Nachricht-----
> Von: Martin Grigorov [mailto:mgrigo...@apache.org]
> Gesendet: Mittwoch, 24. April 2013 10:33
> An: users@wicket.apache.org
> Betreff: Re: AW: AW: DefaultDataTable will not render bottomtoolbar for
> export
>
> What is the full path of your properties.xml ?
>
>
> On Wed, Apr 24, 2013 at 11:30 AM, <christoph.ma...@t-systems.com> wrote:
>
> > But I user this columns in my Table:
> > columns.add(new PropertyColumn<ProtocolRecord, String>(new
> > ResourceModel("protocolRecord.retentionID"), "retentionId",
> > "retentionId"));
> >
> > And in my Browser the property Retention-ID will be loaded from this:
> > entry key="protocolRecord.retentionID">Retention-ID</entry>
> >
> > I can see the right String for this property. This Webpage is used on
> > a VM with Red Hat 64 Bit could this be the problem?
> >
> >
> > 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
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Martin Grigorov [mailto:mgrigo...@apache.org]
> > Gesendet: Mittwoch, 24. April 2013 10:26
> > An: users@wicket.apache.org
> > Betreff: Re: AW: AW: DefaultDataTable will not render bottomtoolbar
> > for export
> >
> > Maybe the file is not used at all. I.e. doesn't load it for some reason.
> >
> >
> > On Wed, Apr 24, 2013 at 11:23 AM, <christoph.ma...@t-systems.com> wrote:
> >
> > > Hello,
> > >
> > > I get this Exception
> > > 2013-04-24 08:18:52,766 | ERROR | tp1448118192-654 |
> > > DefaultExceptionMapper           | ?
> ?
> > |
> > > 269 - org.apache.wicket.core - 6.5.0 | Unexpected error occurred
> > > org.apache.wicket.WicketRuntimeException: Method onResourceRequested
> > > of interface org.apache.wicket.IResourceListener targeted at
> > > [ResourceLink [Component id = exportLink]] on component
> > > [ResourceLink [Component id = exportLink]] threw an exception
> > >         at
> > >
> > org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListe
> > nerInterface.java:268)[269:org.apache.wicket.core:6.5.0]
> > >         at
> > >
> > org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInter
> > face.java:216)[269:org.apache.wicket.core:6.5.0]
> > >         at
> > >
> > org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler
> > .invokeListener(ListenerInterfaceRequestHandler.java:240)[269:org.apac
> > he.wicket.core:6.5.0]
> > >         at
> > >
> > org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler
> > .respond(ListenerInterfaceRequestHandler.java:226)[269:org.apache.wick
> > et.core:6.5.0]
> > >         at
> > >
> > org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(R
> > equestCycle.java:840)[269:org.apache.wicket.core:6.5.0]
> > >         at
> > >
> > org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerSt
> > ack.java:64)[268:org.apache.wicket.request:6.5.0]
> > >         at
> > >
> > org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java
> > :254)[269:org.apache.wicket.core:6.5.0]
> > >         at
> > >
> > org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCyc
> > le.java:211)[269:org.apache.wicket.core:6.5.0]
> > >         at
> > >
> > org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(R
> > equestCycle.java:282)[269:org.apache.wicket.core:6.5.0]
> > >         at
> > >
> > org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(Wicke
> > tFilter.java:244)[269:org.apache.wicket.core:6.5.0]
> > >         at
> > >
> > org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilt
> > er.java:188)[269:org.apache.wicket.core:6.5.0]
> > >         at
> > >
> > org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java
> > :137)[269:org.apache.wicket.core:6.5.0]
> > >         at
> > >
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:693)[95:org.ap
> > ache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
> > >         at
> > >
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[95:org.ap
> > ache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
> > >         at
> > >
> > org.ops4j.pax.wicket.internal.FilterDelegator$Chain.doFilter(FilterDel
> > egator.java:80)[274:org.ops4j.pax.wicket.service:2.1.0]
> > >         at
> > >
> > org.ops4j.pax.wicket.internal.FilterDelegator.doFilter(FilterDelegator
> > .java:62)[274:org.ops4j.pax.wicket.service:2.1.0]
> > >         at
> > >
> > org.ops4j.pax.wicket.internal.ServletProxy$ServletInvocationHandler.in
> > voke(ServletProxy.java:72)[274:org.ops4j.pax.wicket.service:2.1.0]
> > >         at $Proxy67.service(Unknown
> > > Source)[274:org.ops4j.pax.wicket.service:2.1.0]
> > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > Method)[:1.6.0_37]
> > >         at
> > >
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> > ava:39)[:1.6.0_37]
> > >         at
> > >
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> > orImpl.java:25)[:1.6.0_37]
> > >         at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_37]
> > >         at
> > >
> > org.ops4j.pax.web.service.internal.HttpServiceStarted$1.invoke(HttpSer
> > viceStarted.java:182)[100:org.ops4j.pax.web.pax-web-runtime:1.1.9]
> > >         at
> > > org.ops4j.pax.web.service.internal.$Proxy54.service(Unknown
> > > Source)[100:org.ops4j.pax.web.pax-web-runtime:1.1.9]
> > >         at
> > >
> > org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)
> > [80:org.eclipse.jetty.servlet:7.6.7.v20120910]
> > >         at
> > >
> > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:
> > 447)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]
> > >         at
> > >
> > org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doH
> > andle(HttpServiceServletHandler.java:70)[98:org.ops4j.pax.web.pax-web-
> > jetty:1.1.9]
> > >         at
> > >
> > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.ja
> > va:137)[84:org.eclipse.jetty.server:7.6.7.v20120910]
> > >         at
> > >
> > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java
> > :534)[82:org.eclipse.jetty.security:7.6.7.v20120910]
> > >         at
> > >
> > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandle
> > r.java:227)[84:org.eclipse.jetty.server:7.6.7.v20120910]
> > >         at
> > >
> > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandle
> > r.java:1038)[84:org.eclipse.jetty.server:7.6.7.v20120910]
> > >         at
> > >
> > org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(H
> > ttpServiceContext.java:117)[98:org.ops4j.pax.web.pax-web-jetty:1.1.9]
> > >         at
> > >
> > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:3
> > 74)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]
> > >         at
> > >
> > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler
> > .java:189)[84:org.eclipse.jetty.server:7.6.7.v20120910]
> > >         at
> > >
> > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler
> > .java:972)[84:org.eclipse.jetty.server:7.6.7.v20120910]
> > >         at
> > >
> > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.ja
> > va:135)[84:org.eclipse.jetty.server:7.6.7.v20120910]
> > >         at
> > >
> > org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.
> > handle(JettyServerHandlerCollection.java:75)[98:org.ops4j.pax.web.pax-
> > web-jetty:1.1.9]
> > >         at
> > >
> > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.
> > java:116)[84:org.eclipse.jetty.server:7.6.7.v20120910]
> > >         at
> > >
> > org.eclipse.jetty.server.Server.handle(Server.java:363)[84:org.eclipse
> > .jetty.server:7.6.7.v20120910]
> > >         at
> > >
> > org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(Abstract
> > HttpConnection.java:483)[84:org.eclipse.jetty.server:7.6.7.v20120910]
> > >         at
> > >
> > org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(Abstrac
> > tHttpConnection.java:920)[84:org.eclipse.jetty.server:7.6.7.v20120910]
> > >         at
> > >
> > org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerC
> > omplete(AbstractHttpConnection.java:982)[84:org.eclipse.jetty.server:7
> > .6.7.v20120910]
> > >         at
> > >
> > org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)[79:or
> > g.eclipse.jetty.http:7.6.7.v20120910]
> > >         at
> > >
> > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[
> > 79:org.eclipse.jetty.http:7.6.7.v20120910]
> > >         at
> > >
> > org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnectio
> > n.java:82)[84:org.eclipse.jetty.server:7.6.7.v20120910]
> > >         at
> > > org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelE
> > > nd
> > > Point.java:627)[81:org.eclipse.jetty.io:7
> > > .6.7.v20120910]
> > >         at
> > > org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEn
> > > dP
> > > oint.java:51)[81:org.eclipse.jetty.io:7
> > > .6.7.v20120910]
> > >         at
> > >
> > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool
> > .java:608)[90:org.eclipse.jetty.util:7.6.7.v20120910]
> > >         at
> > >
> > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.
> > java:543)[90:org.eclipse.jetty.util:7.6.7.v20120910]
> > >         at java.lang.Thread.run(Thread.java:662)[:1.6.0_37]
> > > Caused by: java.lang.reflect.InvocationTargetException
> > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > Method)[:1.6.0_37]
> > >         at
> > >
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> > ava:39)[:1.6.0_37]
> > >         at
> > >
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> > orImpl.java:25)[:1.6.0_37]
> > >         at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_37]
> > >         at
> > >
> > org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListe
> > nerInterface.java:258)[269:org.apache.wicket.core:6.5.0]
> > >         ... 49 more
> > > Caused by: java.util.MissingResourceException: Unable to find property:
> > > 'protocolRecord.retentionID'. Locale: null, style: null
> > >         at
> > >
> > org.apache.wicket.Localizer.getString(Localizer.java:237)[269:org.apac
> > he.wicket.core:6.5.0]
> > >         at
> > >
> > org.apache.wicket.Localizer.getString(Localizer.java:149)[269:org.apac
> > he.wicket.core:6.5.0]
> > >         at
> > >
> > org.apache.wicket.model.ResourceModel.getObject(ResourceModel.java:76)
> > [269:org.apache.wicket.core:6.5.0]
> > >         at
> > >
> > org.apache.wicket.model.ResourceModel.getObject(ResourceModel.java:33)
> > [269:org.apache.wicket.core:6.5.0]
> > >         at
> > >
> > org.apache.wicket.extensions.markup.html.repeater.data.table.export.CS
> > VDataExporter.exportData(CSVDataExporter.java:198)[271:org.apache.wick
> > et.extensions:6.5.0]
> > >         at
> > >
> > org.apache.wicket.extensions.markup.html.repeater.data.table.export.Ex
> > portToolbar$DataExportResourceStreamWriter.exportData(ExportToolbar.ja
> > va:343)[271:org.apache.wicket.extensions:6.5.0]
> > >         at
> > >
> > org.apache.wicket.extensions.markup.html.repeater.data.table.export.Ex
> > portToolbar$DataExportResourceStreamWriter.write(ExportToolbar.java:29
> > 8)[271:org.apache.wicket.extensions:6.5.0]
> > >         at
> > >
> > org.apache.wicket.request.resource.ResourceStreamResource$1.writeData(
> > ResourceStreamResource.java:192)[269:org.apache.wicket.core:6.5.0]
> > >         at
> > >
> > org.apache.wicket.request.resource.AbstractResource.respond(AbstractRe
> > source.java:528)[269:org.apache.wicket.core:6.5.0]
> > >         at
> > >
> > org.apache.wicket.markup.html.link.ResourceLink.onResourceRequested(Re
> > sourceLink.java:115)[269:org.apache.wicket.core:6.5.0]
> > >         ... 54 more
> > >
> > > Why ist hat property null? In the table this cell isn't empty and in
> > > the markup the rows are rendered including their content. Here is my
> > > properties.xml:
> > > <!DOCTYPE properties SYSTEM
> > > "http://java.sun.com/dtd/properties.dtd";>
> > > <properties>
> > >     <!--<entry key=""></entry>-->
> > >     <entry key="app.title">SMW Protokollierung</entry>
> > >     <entry key="null">Bitte Wählen</entry>
> > >     <entry key="nullValid">Bitte Wählen</entry>
> > >
> > >     <entry key="contentHeader">Protokollierung</entry>
> > >     <entry key="labelRetentionID">Retention-ID:</entry>
> > >     <entry key="labelContentSearch">Nach Inhalt:</entry>
> > >     <entry key="labelExtID">External-ID:</entry>
> > >     <entry key="labelIntService">Integration Service:</entry>
> > >     <entry key="labelServiceName">Servicename:</entry>
> > >     <entry key="labelZeitVon">Zeitraum von:</entry>
> > >     <entry key="labelZeitBis">bis:</entry>
> > >     <entry key="labelSystem">System:</entry>
> > >     <entry key="labelStatus">Status:</entry>
> > >     <entry key="labelServiceTyp">Servicetyp:</entry>
> > >
> > >
> > >     <!-- Datatable -->
> > >     <entry key="datatable.no-records-found">Keine Einträge
> > > vorhanden</entry>
> > >     <entry key="datatable.export-to=Export to">Export to</entry>
> > >     <entry key="datatable.export-file-name">export</entry>
> > >     <entry key="NavigatorLabel">Angezeigt werden die Einträge</entry>
> > >     <entry key="protocolRecord.retentionID">Retention-ID</entry>
> > >     <entry key="protocolRecord.protocolID">Protocol-ID</entry>
> > >     <entry key="protocolRecord.externalID">External-ID</entry>
> > >     <entry key="protocolRecord.eventTimestamp">Event-Timestamp</entry>
> > >     <entry
> > > key="protocolRecord.integrationService">Integration-Service</entry>
> > >     <entry key="protocolRecord.endpoint">Endpoint</entry>
> > >     <entry key="protocolRecord.endpointType">Endpoint-Typ</entry>
> > >     <entry key="protocolRecord.messageStatus">Message-Status</entry>
> > >
> > > </properties>
> > >
> > >
> > > 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
> > >
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: Jesse Long [mailto:j...@unknown.za.net]
> > > Gesendet: Mittwoch, 24. April 2013 10:10
> > > An: users@wicket.apache.org
> > > Betreff: Re: AW: AW: DefaultDataTable will not render bottomtoolbar
> > > for export
> > >
> > > Hi Christoph,
> > >
> > > Are the headers present in the CSV file? (No, indicates some sort of
> > > error generating the CSV, look at server logs. Yes, would indicate
> > > no records, but possibly error encountered after rendering headers,
> > > again, check server logs).
> > >
> > > Are there records displayed in the HTML data table? If there are no
> > > records there, then none will be present in the exported CSV.
> > >
> > > Thanks,
> > > Jesse
> > >
> > > On 24/04/2013 09:13, christoph.ma...@t-systems.com wrote:
> > > > Hello,
> > > >
> > > > Now I can see the exporttoolbar but when I click the link the csv
> > > > is
> > > empty. Why is that empty?
> > > >
> > > > Here the code:
> > > > @Override
> > > > public void onSubmit(AjaxRequestTarget target, Form form) {
> > > >       target.add(feedback);
> > > >       FilterCreatorProtocol filter =
> > > (FilterCreatorProtocol)form.getModelObject();
> > > >
> > > if(ConsoleDataHandlerImpl.getInstance().queryProtocolRowsByFilter(fi
> > > lt
> > > er)
> > > <= MAX_SEARCH_RESULTS){
> > > >               List<ProtocolRecord> protocolData =
> > > ConsoleDataHandlerImpl.getInstance().queryProtocolDataWithSearchFilt
> > > er
> > > (filter);
> > > >
> > > target.add(ProtokollierungPage.this.get("searchTable").replaceWith(g
> > > et
> > > SearchTable(protocolData)));
> > > >       }else{
> > > >               error("ErrorMessage");
> > > >       }
> > > > }
> > > >
> > > > private DefaultDataTable getSearchTable(List<ProtocolRecord>
> > > > dataList)
> > {
> > > >       DefaultDataTable<ProtocolRecord,String> searchTable = new
> > > DefaultDataTable<ProtocolRecord,
> > > String>("searchTable",getTableHead(),new
> > > ProtocolDataSortDataProvider(dataList),10);
> > > >       searchTable.setOutputMarkupId(true);
> > > >       searchTable.addBottomToolbar(new ExportToolbar(searchTable,
> > > > new Model<String>("Export to"), new
> > > > Model<String>("export")).addDataExporter(new CSVDataExporter()));
> > > >
> > > >       return searchTable;
> > > > }
> > > >
> > > > List<IColumn<ProtocolRecord,String>> columns = new
> > > > ArrayList<IColumn<ProtocolRecord,String>>();
> > > > columns.add(new PropertyColumn<ProtocolRecord, String>(new
> > > > ResourceModel("protocolRecord.retentionID"), "retentionId",
> > > "retentionId")); columns.add(new PropertyColumn<ProtocolRecord,
> > > String>(new ResourceModel("protocolRecord.protocolID"),
> > > String>"protocolId",
> > > "protocolId"){
> > > >              @Override
> > > >              public void
> > > populateItem(Item<ICellPopulator<ProtocolRecord>> cellItem, String
> > > componentId, IModel<ProtocolRecord> model)
> > > >              {
> > > >                  cellItem.add(new ActionPanel(componentId, model));
> > > >              }
> > > >          });
> > > > columns.add(new PropertyColumn<ProtocolRecord, String>(new
> > > > ResourceModel("protocolRecord.externalID"), "externalId",
> > > > "externalId")); columns.add(new DatePropertyColumn(new
> > > > ResourceModel("protocolRecord.eventTimestamp"),"eventTimestamp","e
> > > > ve nt Timestamp","dd.MM.yyyy HH:mm:ss")); columns.add(new
> > > > PropertyColumn<ProtocolRecord, String>(new
> > > > ResourceModel("protocolRecord.integrationService"),"integrationSer
> > > > vi ce ","integrationService")); columns.add(new
> > > > PropertyColumn<ProtocolRecord, String>(new
> > > > ResourceModel("protocolRecord.endpoint"),"endpoint","endpoint"));
> > > > columns.add(new PropertyColumn<ProtocolRecord, String>(new
> > > > ResourceModel("protocolRecord.endpointType"),"endpointType","endpo
> > > > in tT ype")); columns.add(new PropertyColumn<ProtocolRecord,
> > > > String>(new
> > > > ResourceModel("protocolRecord.messageStatus"),"messageStatus.descr
> > > > ip
> > > > ti
> > > > on","messageStatus.description"));
> > > >
> > > >
> > > > 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
> > > >
> > > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Manig, Christoph
> > > > Gesendet: Mittwoch, 24. April 2013 07:54
> > > > An: users@wicket.apache.org
> > > > Betreff: AW: AW: DefaultDataTable will not render bottomtoolbar
> > > > for export
> > > >
> > > > Hello,
> > > >
> > > > now I see the Problem. Thank you for your help and sorry for my
> > > blindness.
> > > >
> > > >
> > > > 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
> > > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Jesse Long [mailto:j...@unknown.za.net]
> > > > Gesendet: Dienstag, 23. April 2013 15:57
> > > > An: users@wicket.apache.org
> > > > Betreff: Re: AW: DefaultDataTable will not render bottomtoolbar
> > > > for export
> > > >
> > > > Hi Christoph,
> > > >
> > > > PropertyColumns are already exportable. Exportable means
> > > > implements
> > > IExportableColumn.
> > > >
> > > > Sven identified that the replaced data table does not have the
> > > > export
> > > toolbar added to it. This is why it does not display after being
> > replaced.
> > > >
> > > > Cheers,
> > > > Jesse
> > > >
> > > > On 23/04/2013 15:49, christoph.ma...@t-systems.com wrote:
> > > >> Ok. Thanks for your answer.
> > > >>
> > > >> Here are my columns:
> > > >> List<IColumn<ProtocolRecord,String>> columns = new
> > > >> ArrayList<IColumn<ProtocolRecord,String>>();
> > > >> columns.add(new PropertyColumn<ProtocolRecord, String>(new
> > > >> ResourceModel("protocolRecord.retentionID"), "retentionId",
> > > "retentionId")); columns.add(new PropertyColumn<ProtocolRecord,
> > > String>(new ResourceModel("protocolRecord.protocolID"),
> > > String>"protocolId",
> > > "protocolId"){
> > > >>               @Override
> > > >>               public void
> > > populateItem(Item<ICellPopulator<ProtocolRecord>> cellItem, String
> > > componentId, IModel<ProtocolRecord> model)
> > > >>               {
> > > >>                   cellItem.add(new ActionPanel(componentId, model));
> > > >>               }
> > > >>           });
> > > >> columns.add(new PropertyColumn<ProtocolRecord, String>(new
> > > >> ResourceModel("protocolRecord.externalID"), "externalId",
> > > >> "externalId")); columns.add(new DatePropertyColumn(new
> > > >> ResourceModel("protocolRecord.eventTimestamp"),"eventTimestamp","
> > > >> ev en t Timestamp","dd.MM.yyyy HH:mm:ss")); columns.add(new
> > > >> PropertyColumn<ProtocolRecord, String>(new
> > > >> ResourceModel("protocolRecord.integrationService"),"integrationSe
> > > >> rv ic e ","integrationService")); columns.add(new
> > > >> PropertyColumn<ProtocolRecord, String>(new
> > > >> ResourceModel("protocolRecord.endpoint"),"endpoint","endpoint"));
> > > >> columns.add(new PropertyColumn<ProtocolRecord, String>(new
> > > >> ResourceModel("protocolRecord.endpointType"),"endpointType","endp
> > > >> oi nt T ype")); columns.add(new PropertyColumn<ProtocolRecord,
> > > >> String>(new
> > > >> ResourceModel("protocolRecord.messageStatus"),"messageStatus.desc
> > > >> ri
> > > >> pt
> > > >> i
> > > >> on","messageStatus.description"));
> > > >>
> > > >> How can I make them exportable? What are exportable columns in
> Wicket?
> > > >>
> > > >> At first the dataTable is empty, so the BottomToolbar shouldn't
> > > >> be
> > > rendered. That's right. But when it is replaced by an Ajaxbutton and
> > > there is some data in the dataTable the Bottomtoolbar isn't
> > > rendered.Why? Because of the non-exportable columns?
> > > >>
> > > >>
> > > >> 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
> > > >>
> > > >>
> > > >> -----Ursprüngliche Nachricht-----
> > > >> Von: Jesse Long [mailto:j...@unknown.za.net]
> > > >> Gesendet: Dienstag, 23. April 2013 15:43
> > > >> An: users@wicket.apache.org
> > > >> Betreff: Re: DefaultDataTable will not render bottomtoolbar for
> > > >> export
> > > >>
> > > >> 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
> > > >>
> > > >>
> > > >> -----------------------------------------------------------------
> > > >> --
> > > >> -- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > >> For additional commands, e-mail: users-h...@wicket.apache.org
> > > >>
> > > >>
> > > >
> > > > ------------------------------------------------------------------
> > > > --
> > > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > > For additional commands, e-mail: users-h...@wicket.apache.org
> > > >
> > > >
> > > > ------------------------------------------------------------------
> > > > --
> > > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > > For additional commands, e-mail: users-h...@wicket.apache.org
> > > >
> > > >
> > > > ------------------------------------------------------------------
> > > > --
> > > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > > For additional commands, e-mail: users-h...@wicket.apache.org
> > > >
> > > >
> > >
> > >
> > > --------------------------------------------------------------------
> > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> > > --------------------------------------------------------------------
> > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> >
> >
> > --
> > Martin Grigorov
> > jWeekend
> > Training, Consulting, Development
> > http://jWeekend.com <http://jweekend.com/>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com <http://jweekend.com/>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to