Data Exporter ignores header text?

UI Components for JSF
Post Reply
genomeprjct
Posts: 13
Joined: 14 Nov 2010, 01:21

29 Nov 2010, 21:14

This seems a little inconsistent to me, but it looks like a Data Exporter ignores header text attribute in a p:column. I'm using 2.2 RC 2.

Nick
Posts: 22
Joined: 19 Nov 2010, 19:37

29 Nov 2010, 22:04

I don't think p:column has a header attribute. Try putting a facet with the name "header" inside the column, e.g.:

Code: Select all

<p:column>
    <f:facet name="header">
        <h:outputText value="This will be the header text" />
    </f:facet>
    <h:outputText value="This is in each table cell" />
</p:column>

genomeprjct
Posts: 13
Joined: 14 Nov 2010, 01:21

30 Nov 2010, 03:14

sorry - I'm talking about the headerText attribute in p:column.

<p:column headerText="My Header">
<h:outputText value="#{myItem.someProperty}"/>
</p:column>

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

30 Nov 2010, 14:47

The data exporter doesn't support much of the datatable right now. See this thread:

http://primefaces.prime.com.tr/forum/vi ... f=3&t=5000

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 44 guests