I am trying to break the text that appears inside the value <h:outputText , which works fine if I put the text directly inside the value <h:outputText , but if I put the same text inside the properties file it stops working
here is a sample text
A<br />B<br />C
this works great:
<h:outputText value="A<br />B<br />C" escape="false"/>
does not work:
<h:outputText value="#{text.someText}" escape="false"/>
code from the properties file:
someText = A<br />B<br />C
the only way i found is to wrap <h:outputText with a <pre> , but that is not very good because it changes the font of the text, it looks weird and somehow I hope there is a JSF way to achieve the gap lines when working with a properties file
btw I looked at the following links, but they do not suit me
JSF h: line break outputText for long words inside lines
Insert line break inside p: commandButton
Thanks in advance!
source share