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
dataExporter does not include header if taken from bundle
-
- Posts: 22
- Joined: 23 Dec 2009, 20:45
Thanks,
Sushma
========================================================================================
using Mojarra 1.2_12, facelets, primefaces-1.0.0, tomahawk12-1.1.9, tomcat-6.0.20, jboss-4.2.2GA
Sushma
========================================================================================
using Mojarra 1.2_12, facelets, primefaces-1.0.0, tomahawk12-1.1.9, tomcat-6.0.20, jboss-4.2.2GA
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Are you using f:loadBundle? If so try JSF 1.2's <resource-bundle /> feature.
-
- Posts: 22
- Joined: 23 Dec 2009, 20:45
yeah, I was using f:loadBundle. I switched to <resourceBundle/> and export prints the headers also.
Thanks,
Sushma
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
Sushma
========================================================================================
using Mojarra 1.2_12, facelets, primefaces-1.0.0, tomahawk12-1.1.9, tomcat-6.0.20, jboss-4.2.2GA
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Glad it works Sushma, resource bundle is much faster and better than f:loadBundle.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 70 guests