Primefaces Exporter Data type convert

UI Components for JSF
Post Reply
fmontada
Posts: 15
Joined: 22 Apr 2015, 22:25

22 Apr 2015, 22:28

Hi team
We are using Primefaces to export data in different format, pdf,excel ...
but in Excel we got a issue with the data type, for example if the the data is Integer in the Excel document the value appears how String and the viewer suggest change
the value to Number

how could we change the Data type in the exporter process ?

thanks,
Francisco

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

23 Apr 2015, 07:48

In the postProcessor you can convert them to number type.It has been discussed few times http://forum.primefaces.org/viewtopic.php?f=3&t=27698http://stackoverflow.com/questions/2911 ... -text-in-e
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

fmontada
Posts: 15
Joined: 22 Apr 2015, 22:25

23 Apr 2015, 18:15

Hi Sudheer
thanks for answering. the postProcess approach is working for us

thanks again,
Francisco

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

23 Apr 2015, 19:53

Glad to hear it works !!
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 38 guests