AW: AW: AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-24 Thread Christoph.Manig
=labelZeitBisbis:/entry
entry key=labelSystemSystem:/entry
entry key=labelStatusStatus:/entry
entry key=labelServiceTypServicetyp:/entry


!-- Datatable --
entry key=datatable.no-records-foundKeine Einträge vorhanden/entry
entry key=datatable.export-to=Export toExport to/entry
entry key=datatable.export-file-nameexport/entry
entry key=NavigatorLabelAngezeigt werden die Einträge/entry
entry key=protocolRecord.retentionIDRetention-ID/entry
entry key=protocolRecord.protocolIDProtocol-ID/entry
entry key=protocolRecord.externalIDExternal-ID/entry
entry key=protocolRecord.eventTimestampEvent-Timestamp/entry
entry key=protocolRecord.integrationServiceIntegration-Service/entry
entry key=protocolRecord.endpointEndpoint/entry
entry key=protocolRecord.endpointTypeEndpoint-Typ/entry
entry key=protocolRecord.messageStatusMessage-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(filter) = 
 MAX_SEARCH_RESULTS){
   ListProtocolRecord protocolData = 
 ConsoleDataHandlerImpl.getInstance().queryProtocolDataWithSearchFilter(filter);
   
 target.add(ProtokollierungPage.this.get(searchTable).replaceWith(getSearchTable(protocolData)));
   }else{
   error(ErrorMessage);
   }
 }

 private DefaultDataTable getSearchTable(ListProtocolRecord dataList) {
   DefaultDataTableProtocolRecord,String searchTable = new 
 DefaultDataTableProtocolRecord, String(searchTable,getTableHead(),new 
 ProtocolDataSortDataProvider(dataList),10);
   searchTable.setOutputMarkupId(true);
   searchTable.addBottomToolbar(new ExportToolbar(searchTable, new
 ModelString(Export to), new
 ModelString(export)).addDataExporter(new CSVDataExporter()));

   return searchTable;
 }

 ListIColumnProtocolRecord,String columns = new
 ArrayListIColumnProtocolRecord,String();
 columns.add(new PropertyColumnProtocolRecord, String(new
 ResourceModel(protocolRecord.retentionID), retentionId, retentionId)); 
 columns.add(new PropertyColumnProtocolRecord, String(new 
 ResourceModel(protocolRecord.protocolID), protocolId, protocolId){
  @Override
  public void populateItem(ItemICellPopulatorProtocolRecord 
 cellItem, String componentId, IModelProtocolRecord model)
  {
  cellItem.add(new ActionPanel(componentId, model));
  }
  });
 columns.add(new PropertyColumnProtocolRecord, String(new
 ResourceModel(protocolRecord.externalID), externalId,
 externalId)); columns.add(new DatePropertyColumn(new
 ResourceModel(protocolRecord.eventTimestamp),eventTimestamp,event
 Timestamp,dd.MM. HH:mm:ss)); columns.add(new
 PropertyColumnProtocolRecord, String(new
 ResourceModel(protocolRecord.integrationService),integrationService
 ,integrationService)); columns.add(new
 PropertyColumnProtocolRecord, String(new
 ResourceModel(protocolRecord.endpoint),endpoint,endpoint));
 columns.add(new PropertyColumnProtocolRecord, String(new
 ResourceModel(protocolRecord.endpointType),endpointType,endpointT
 ype)); columns.add(new PropertyColumnProtocolRecord, String(new
 ResourceModel(protocolRecord.messageStatus),messageStatus.descripti
 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

AW: AW: AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-24 Thread Christoph.Manig
But I user this columns in my Table:
columns.add(new PropertyColumnProtocolRecord, String(new 
ResourceModel(protocolRecord.retentionID), retentionId, retentionId));

And in my Browser the property Retention-ID will be loaded from this:
entry key=protocolRecord.retentionIDRetention-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(RequestListenerInterface.java:268)[269:org.apache.wicket.core:6.5.0]
 at
 org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)[269:org.apache.wicket.core:6.5.0]
 at
 org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:240)[269:org.apache.wicket.core:6.5.0]
 at
 org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:226)[269:org.apache.wicket.core:6.5.0]
 at
 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:840)[269:org.apache.wicket.core:6.5.0]
 at
 org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.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(RequestCycle.java:211)[269:org.apache.wicket.core:6.5.0]
 at
 org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:282)[269:org.apache.wicket.core:6.5.0]
 at
 org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:244)[269:org.apache.wicket.core:6.5.0]
 at
 org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.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.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[95:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
 at
 org.ops4j.pax.wicket.internal.FilterDelegator$Chain.doFilter(FilterDelegator.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.invoke(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.java:39)[:1.6.0_37]
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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(HttpServiceStarted.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

AW: AW: AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-24 Thread Christoph.Manig
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 PropertyColumnProtocolRecord, String(new
 ResourceModel(protocolRecord.retentionID), retentionId,
 retentionId));

 And in my Browser the property Retention-ID will be loaded from this:
 entry key=protocolRecord.retentionIDRetention-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

AW: AW: AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-24 Thread Christoph.Manig
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.proper
 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 PropertyColumnProtocolRecord, String(new
  ResourceModel(protocolRecord.retentionID), retentionId,
  retentionId));
 
  And in my Browser the property Retention-ID will be loaded from this:
  entry key=protocolRecord.retentionIDRetention-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

AW: AW: AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-24 Thread Christoph.Manig
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.proper
 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 PropertyColumnProtocolRecord, String(new
  ResourceModel(protocolRecord.retentionID), retentionId,
  retentionId));
 
  And in my Browser the property Retention-ID will be loaded from this:
  entry key=protocolRecord.retentionIDRetention-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

Re: AW: AW: AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-24 Thread Jesse Long

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.proper
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 PropertyColumnProtocolRecord, String(new
ResourceModel(protocolRecord.retentionID), retentionId,
retentionId));

And in my Browser the property Retention-ID will be loaded from this:
entry key=protocolRecord.retentionIDRetention-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

AW: AW: AW: AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-24 Thread Christoph.Manig
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