It should be enough to use \n for line breaks.

Markus

-------- Original-Nachricht --------
> Datum: Wed, 12 Nov 2008 08:54:53 +0100
> Von: Simon Kitching <[EMAIL PROTECTED]>
> An: MyFaces Discussion <users@myfaces.apache.org>
> Betreff: Re: how to display line break in <h:inputTextarea>

> 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...
> 
> Regards,
> Simon
> 
> -- 
> -- Emails in "mixed" posting style will be ignored
> -- (http://en.wikipedia.org/wiki/Posting_style)

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

Reply via email to