myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "simon.kitching@chello.at" <simon.kitch...@chello.at>
Subject Re: how to display line break in <h:inputTextarea>
Date Wed, 12 Nov 2008 08:19:10 GMT
Simon Kitching schrieb:
> tong123123 schrieb:
>> I want to display something like
>> ab
>> def
>>
>> I try the following code
>> <h:inputTextarea rows="10" cols="20" readonly="true"
value="ac<br/>de&lt;br&gt;/"/>
>>
>> but the output is
>> ac<br/>de&lt;br&gt;/
>>
>> so how to let the browser output
>> ab
>> def
>> using <h:inputTextarea>??
>>
> I don't think the HTML textarea component supports embedded html. Can
> you get this working just with plain HTML? If not, then clearly it is
> impossible for JSF to do anything about that...

Maybe you should try this?
value="ab\ncd\\nef"

Regards,
Simon


Mime
View raw message