Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Embedding large generated HTML files to JSF  RSS feed

 
Mike Barton
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
my application generates large (>50MB) html reports.
These report files are stored on servers file system,
displayed right after generation and also on user's demand.
Reports are embeded ("dumped") right into JSF page structure (see source code).


I have 2 questions:

1) Is it possible to avoid error:
ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet
threw exception java.lang.OutOfMemoryError: Java heap space
while displaying larger reports?

2) Are the JSF pages generated this way (with HTML report "dumped" to it)
somehow (p)recompiled? If yes, is it possible to avoid this recompilation
of this large embeded pure HTML part?

Thank you
Mike
 
Sukirtha Joe
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Did you find any solution for this? If so please post. I need to display a report along with page navigation using jsf. I am not sure how to go about embedding a dynamically generated report into jsf.

I would appreciate any help!
Thanks
[ May 08, 2008: Message edited by: Sukirtha Joe ]
 
Tim Holloway
Bartender
Posts: 18705
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, the bigger problem was generating web 50MB pages to begin with. I've no problem with, say generating a 50MB PDF for downloading and local viewing - I've even done so many a time, though not for use on a slow open Internet connection But dumping that much data into someone's web browser has been known to crash their entire OS.

JSF really isn't the optimal technology for this. It'd be better to have a servlet generate the report and stream it out in manageable chunks. You can mix servlets and JSF in a single webapp.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!