This content has been marked as final.
Show 2 replies
-
1. Re: How to show a break line in the header of datatable???
liuliu Oct 26, 2010 3:32 AM (in response to ziyang)hi,
it is automatic if you have not whitespace:nowrap in your style.
-
2. Re: How to show a break line in the header of datatable???
healeyb Jan 24, 2012 7:24 AM (in response to liuliu)This is answer is a bit late, but I know two ways to do it:
1. <h:outputText escape="false" value="hello<br/&ft;world"/>
If the value is coming from a message file, i.e. #{msgs.helloWorld} then you can define helloWorld
like this:
helloWorld=Hello<br/>world
2. <h:outputText style="white-space: pre" value="hello world"/>
Regards,
Brendan.