This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.



Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

PrimeFaces Dataexporter : File opens as HTML  RSS feed

 
Vikas Desi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using p:dataExporter tag to export my results in dataTable to various file formats. For PDF and XLS its working fine but for CSV and XLS its not.
When I try to download the file in CSV/XML format; file does not download, instead it opens in the same browser tab as a html page.

Here is my code to data Export:



and Here is the call to the Dialog.


It was working fine when I did not introduced the interactive dialog,

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!