• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Excel Export Issue

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello -

My team is currently working on a project where we need to export some search results from a jsr portlet into excel. The search results portlet has a Excel Export button and when the user clicks this it does a form post to the server. The server is getting the data we need to export however the data is going through setRenderParameter and it is hitting some sort of size limit thus causing the excel export to fail. Does anyone know a way around this or perhaps another way to accomplish this?

Thanks in advance!
 
Brett Lewinski
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We got this workign by doing the following; figured I woudl post it if somepone else comes across it.
The issue was solved by using the PortletSession setAttribute; see the snippet below:

PortletSession ps= request.getPortletSession();
ps.setAttribute("data",data);

Thanks and Good Luck!
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also make sure to flush it from session in doView()
 
Stinging nettles are edible. But I really want to see you try to eat this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic