• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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()
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic