-
1. Re: extendedDataTable - multiple row header
healeyb Apr 2, 2012 5:03 AM (in response to cristivsflorin)Hi Cristian, a good question. I've not managed to get the header to span more than one row but have got
individual column headers to appear on more than one line using either of the following options:
<f:facet name="header">
<h:outputText escape="false" value="hello<br/>world"/>
</f:facet>
<f:facet name="header">
<h:outputText style="white-space: pre" value="hello world"/>
</f:facet>
In the first example if you are getting the text from a resource file then you could have this:
messages.properties
helloWorldText=hello<br/>world
<f:facet name="header">
<h:outputText escape="false" value="#{msgs.helloWorldText}"/>
</f:facet>
What I wasn't able to do was get everything vertical-align: middle - everything ends up vertical-align: top, I
expect that the line break confuses things.
So, perhaps not exactly what you wish to do but it does at least mean that you don't have to have a column
taking up half the page width just because the column header consists of multiple words!
Regards,
Brendan.
p.s. I don't think I've got any additional css applied to the table and it's header but it's not impossible, so if
you don't get a multi-line header with the above let me know and I'll double check.
-
2. Re: extendedDataTable - multiple row header
cristivsflorin Apr 2, 2012 12:55 PM (in response to healeyb)