In my application, I have the following <p:dataTable>
:
The 2nd column's header costs too much spaces. Hence, I'd like to put a linebreak between Number of
& Sessions
and also vertically align the headers of the table. I tried to reduce the width of the column but it didn't automatically result in a linebreak.
Besides, since the header name is retrieved from the l10n.properties
file, I also tried to set it as Number of /n Sessions
but /n
was printed out as a normal string.
UPDATE: I also tried to set the property as Number of <br/> Sessions
. However, in the HTML code generated, <br/>
disappeared and the table looks exactly the same as above.
I'd be very grateful if you could give me an advice.
Best regards,