Re: h:inputTextArea swallows one leading newline

From: Manfred Riem <>
Date: Thu, 11 Apr 2013 10:53:32 -0500

Hi Daniel,

It is behavior stemming from the SGML nature of the HTML4 specification.
It requires the stripping of the leading and trailing new line between a

I would suggest if you want to make sure that you don't lose content to
add a \n at the beginning and the end on the server side of your

Note you probably want to review your pages if you have more than one
page using the textarea tag and make sure they are all used in the same way.


On 3/25/2013 2:14 PM, wrote:
> Hi Manfred,
> Thanks for the quick reply.
>> If you think the specification and thus the implementation of
> h:inputTextarea needs to
>> deal with this you probably are looking a specification issue, which
> are tracked at
>> the JAVASERVERFACES_SPEC_PUBLIC jira issue tracker.
> I'm not sure how deep the issue goes - maybe the browser behaviour
> depends on the DOCTYPE? Were there any changes in the XML writers? Did
> each JSF application since 1.0 have this (admittedly obscure) issue
> with textareas? Did older, less standards-conformant browsers behave
> differently? I'd like to hear if other people had/have this problem,
> too.
> Daniel