Preserving line breaks from a inputTextArea

Hi

In my app, I have an h:inputTextArea whose content will be saved in the DB and later be printed in some other page. The problem is that I need to print the text as it was typed in the textarea, but the line-breaks get stripped away during the process.

How can I make sure that the component passes the text as it was typed to the app? Btw, I'm using jsp/jsf/ajax4jsf components.

TIA

Khristian

[427 byte] By [Der_KosaKa] at [2007-11-27 7:49:46]
# 1
The components do pass the text as it was typed. The problem is that in HTML all whitespace is reduced to a single space, including line breaks. Popular ways to solve this include using the HTML <pre> tag or using styles.
RaymondDeCampoa at 2007-7-12 19:30:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...