I'm trying to break the text that is displayed inside the value attribute of the <h:outputText
, that works fine if i place the text directly inside the value attribute of the <h:outputText
, but if I place the same text inside the property file , it stop working
here is an example of the text
A<br />B<br />C
this works fine:
<h:outputText value="A<br />B<br />C" escape="false"/>
does not work:
<h:outputText value="#{text.someText}" escape="false"/>
code from property file:
someText = A<br />B<br />C
the only way i found is wrap the <h:outputText
with a <pre>
tag , but that's not good enough cause it changes the font of the text , it look weird , and any way I hope that there is a JSF way to achieve the line breaks when working with a property file
b.t.w I looked at the following links , but they are no good for me
JSF h:outputText line break for long words within strings
Insert a line break inside p:commandButton
Thanks ahead!