i used the primefaces datatexporter to export the data from the datatable to a PDF file
i added the required jar file to the library but i get the data duplicated in the file
exemple, i have 5 rows in the datatable, after export i find in the PDF file 15 ROW that means the data is displayed 3 times
here is the pdf file: https://www.mediafire.com/?ol61j15ra8kya83
issue with dataexporter
Please post the code snippets.Otherwise there will be no clue for your issue.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
Exactly.That is the reason for the multiple records in the export.kukeltje wrote:JSF/Java rule #1: Don't do any work in getters (or setters)... You getter is most likely called multiple times... Each time you add records to the list... A little debugging would have shown this.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
-
- Information
-
Who is online
Users browsing this forum: Bing [Bot] and 53 guests