dataExporter does not include header if taken from bundle

UI Components for JSF
Post Reply
sushmasharma79
Posts: 22
Joined: 23 Dec 2009, 20:45

30 Dec 2009, 19:12

Hi,

I am trying to export data of a dataTable into excel using dataExporter. I am getting the headers of the columns in dataTable from Message Properties file. When it generates the excel file, it is missing the headers in the excel file. If I don't use the bundle and hard code the header text into my xhtml, then it adds the header to the excel.

I tried the same thing with the primeFaces showcase also and result is same. Any idea how to fix it?

Thanks,
Sushma
Thanks,
Sushma
========================================================================================
using Mojarra 1.2_12, facelets, primefaces-1.0.0, tomahawk12-1.1.9, tomcat-6.0.20, jboss-4.2.2GA

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

04 Jan 2010, 15:17

Are you using f:loadBundle? If so try JSF 1.2's <resource-bundle /> feature.

sushmasharma79
Posts: 22
Joined: 23 Dec 2009, 20:45

04 Jan 2010, 23:01

yeah, I was using f:loadBundle. I switched to <resourceBundle/> and export prints the headers also.
Thanks,
Sushma
Thanks,
Sushma
========================================================================================
using Mojarra 1.2_12, facelets, primefaces-1.0.0, tomahawk12-1.1.9, tomcat-6.0.20, jboss-4.2.2GA

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

05 Jan 2010, 01:37

Glad it works Sushma, resource bundle is much faster and better than f:loadBundle.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 70 guests