Hi Jeff

Worked like charm!

<t:outputText escape="false" style="white-space: pre;" value="#{communication.body}" />


Many Thanks!

-Steve



Steve Torrefranca wrote:
Hi Jeff,

sorry for not being clear.

what i need is for the text to keep follow line breaks without using replaceAll "\n" with <br/> . the reason for that is some texts are stored in the db as pure text with escape char while others are saved in html format.

-Steve


Jeff Bischoff wrote:
You mean you tried:

<t:div style="width: 25px;"/>
   <h:outputText ... />
</t:div>

That didn't work?

Steve Torrefranca wrote:
Hi,

How do we wrap texts with "\n"?  I have tried t:div but did not work.

Thank you

-Steve









Reply via email to