DataExporter doesn't export DataTable column headerText

UI Components for JSF
Post Reply
kurkix
Posts: 1
Joined: 17 Nov 2022, 21:26

17 Nov 2022, 21:40

Hello,

I try to export datatable datas to excel file by dataexporter. DataExporter export datatable column headerTexts when i use primefaces 6.1. But I upgraded to version 12.0.0, dataexporter doesn't export datatable column headerTexts. I use all export header types. But both of them doens'nt work. I checked primefaces showcase page. It doesn't work at primefaces showcase page. I see "null" when i call getRow(0). Rows start at index 1. But I see first row is empty when i check exported excel file. How can i export headerTexts?

Code: Select all

<p:column headerText="test" style="width:170px;"
		filterBy="#{variable}" filterMatchMode="contains">
	<h:outputText value="test" />
</p:column>

Code: Select all

<p:column style="width:170px;"
		filterBy="#{variable}" filterMatchMode="contains">
		<f:facet name="header">
			<h:outputText value="test" />
		</f:facet>
		
		<h:outputText value="test" />
</p:column>


Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

23 Nov 2022, 22:44

PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests