Not sure what the question is. The value is not trimmed, or converted by any code from the input text area that I am aware of, so white-space should not be affected. If you want to display the text to the user in the original formatting, show it in a textarea, pre element or span element with style "whitespace: pre". The style one may not work well in IE though (I have seen some issues)
On 11/15/06, Madhav Bhargava <[EMAIL PROTECTED]> wrote:
Hi All, *Following is the requirement:* User enters text in text area or a similar component. The user clicks on the save button which then saves the data in a database. When the user views the file again, data is retrieved from the database to display on the page. *Question:* * * 1. How will preserve any formatting which involves indentation, line breaks etc.. along with text? 2. While showing the text in an editable or non-editable field how will display the text as it was entered using any JSF component? Thanks, madhav **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS***

