Datatable Headings

UI Components for JSF
Post Reply
vjosullivan
Posts: 27
Joined: 29 Jan 2010, 12:05

12 Apr 2010, 13:25

Two quick questions...

1. Is it possible to have more than one line of text inside the heading of a datatable?
2. Is it possible to have no heading on a datatable?

Has anyone succeeded in doing either of these things?

Thanks,
Vince.
[ Primefaces 2.2: Java 1.5: JSF 2.0: Apache Tomcat 6.0 ]

vjosullivan
Posts: 27
Joined: 29 Jan 2010, 12:05

13 Apr 2010, 12:02

In answer to my own questions:
1. Is it possible to have more than one line of text inside the heading of a datatable?
Yes, in the header facet have something like

Code: Select all

<h:outputText value="First<br>Name" />
2. Is it possible to have no heading on a datatable?
No. Leaving the headings blank results in small, empty boxes (about 5px high) being displayed above each column. I haven't found a way to get rid of these boxes.
[ Primefaces 2.2: Java 1.5: JSF 2.0: Apache Tomcat 6.0 ]

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

13 Apr 2010, 20:54

For 2, can you try this css approach;

Code: Select all

.yui-skin-sam .yui-dt thead {
    display:none;
}

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests