Hello, yes the csv-export is working now. No I didn't know about the new exporters. At the moment I don't need another exporter. Thank you for your help.
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 12:37 An: users@wicket.apache.org Betreff: Re: AW: AW: AW: DefaultDataTable will not render bottomtoolbar for export Hi Christoph, Nice solution. Does your CSV export work now? Do you know about the new exporters in wicketstuff-poi v6.7.0? Thanks, Jesse On 24/04/2013 11:50, christoph.ma...@t-systems.com wrote: > I resolve the problem. > > I use this new > ResourceModel("protocolRecord.retentionID").wrapOnAssignment(getPage() > ) > > > 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 11:22 > An: users@wicket.apache.org > Betreff: AW: AW: AW: DefaultDataTable will not render bottomtoolbar > for export > > Is there another way to get this properties? Because there are properties for > every page in my project. > > In which package should this MyApplication.properties.xml be in? > > > 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 11:16 > An: users@wicket.apache.org > Betreff: Re: AW: AW: DefaultDataTable will not render bottomtoolbar > for export > > 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.prope >> r >> ties.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(RequestLis >>> te nerInterface.java:268)[269:org.apache.wicket.core:6.5.0] >>>> at >>>> >>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInt >>> er face.java:216)[269:org.apache.wicket.core:6.5.0] >>>> at >>>> >>> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandl >>> er >>> .invokeListener(ListenerInterfaceRequestHandler.java:240)[269:org.ap >>> ac >>> he.wicket.core:6.5.0] >>>> at >>>> >>> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandl >>> er >>> .respond(ListenerInterfaceRequestHandler.java:226)[269:org.apache.wi >>> ck >>> 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(RequestHandler >>> St ack.java:64)[268:org.apache.wicket.request:6.5.0] >>>> at >>>> >>> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.ja >>> va :254)[269:org.apache.wicket.core:6.5.0] >>>> at >>>> >>> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestC >>> yc 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(Wic >>> ke tFilter.java:244)[269:org.apache.wicket.core:6.5.0] >>>> at >>>> >>> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFi >>> lt er.java:188)[269:org.apache.wicket.core:6.5.0] >>>> at >>>> >>> org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.ja >>> va :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(FilterD >>> el egator.java:80)[274:org.ops4j.pax.wicket.service:2.1.0] >>>> at >>>> >>> org.ops4j.pax.wicket.internal.FilterDelegator.doFilter(FilterDelegat >>> or .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(DelegatingMethodAcce >>> ss >>> 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(HttpS >>> er >>> 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:65 >>> 2) [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.d >>> oH >>> andle(HttpServiceServletHandler.java:70)[98:org.ops4j.pax.web.pax-we >>> b- >>> 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.ja >>> va :534)[82:org.eclipse.jetty.security:7.6.7.v20120910] >>>> at >>>> >>> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHand >>> le r.java:227)[84:org.eclipse.jetty.server:7.6.7.v20120910] >>>> at >>>> >>> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHand >>> le 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(SessionHandl >>> er .java:189)[84:org.eclipse.jetty.server:7.6.7.v20120910] >>>> at >>>> >>> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandl >>> er .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.pa >>> x- >>> 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.eclip >>> se >>> .jetty.server:7.6.7.v20120910] >>>> at >>>> >>> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(Abstra >>> ct >>> HttpConnection.java:483)[84:org.eclipse.jetty.server:7.6.7.v20120910 >>> ] >>>> at >>>> >>> org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(Abstr >>> ac >>> tHttpConnection.java:920)[84:org.eclipse.jetty.server:7.6.7.v2012091 >>> 0] >>>> at >>>> >>> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.heade >>> rC >>> 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(AsyncHttpConnect >>> io n.java:82)[84:org.eclipse.jetty.server:7.6.7.v20120910] >>>> at >>>> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChanne >>>> lE >>>> nd >>>> Point.java:627)[81:org.eclipse.jetty.io:7 >>>> .6.7.v20120910] >>>> at >>>> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannel >>>> En >>>> dP >>>> oint.java:51)[81:org.eclipse.jetty.io:7 >>>> .6.7.v20120910] >>>> at >>>> >>> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPo >>> ol .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(DelegatingMethodAcce >>> ss >>> 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(RequestLis >>> te 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.ap >>> ac >>> he.wicket.core:6.5.0] >>>> at >>>> >>> org.apache.wicket.Localizer.getString(Localizer.java:149)[269:org.ap >>> ac >>> he.wicket.core:6.5.0] >>>> at >>>> >>> org.apache.wicket.model.ResourceModel.getObject(ResourceModel.java:7 >>> 6) >>> [269:org.apache.wicket.core:6.5.0] >>>> at >>>> >>> org.apache.wicket.model.ResourceModel.getObject(ResourceModel.java:3 >>> 3) >>> [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.wi >>> ck >>> 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.writeDat >>> a( >>> ResourceStreamResource.java:192)[269:org.apache.wicket.core:6.5.0] >>>> at >>>> >>> org.apache.wicket.request.resource.AbstractResource.respond(Abstract >>> Re 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().queryProtocolDataWithSearchFi >>>> lt >>>> 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"),"integrationS >>>>> er 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","end >>>>> po in tT ype")); columns.add(new PropertyColumn<ProtocolRecord, >>>>> String>(new >>>>> ResourceModel("protocolRecord.messageStatus"),"messageStatus.des >>>>> cr >>>>> 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"),"integration >>>>>> Se 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","en >>>>>> dp oi nt T ype")); columns.add(new PropertyColumn<ProtocolRecord, >>>>>> String>(new >>>>>> ResourceModel("protocolRecord.messageStatus"),"messageStatus.de >>>>>> sc >>>>>> 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/> > > --------------------------------------------------------------------- > 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