The values need to be escaped and you can use the
components 'escape' attribute for that.
escape="true|false"
From: javaone9 [mailto:[EMAIL PROTECTED]
Sent: Monday, September 05, 2005 9:47 PM
To: [email protected]
Subject: outputText: display a html section
Hello,
I need some help. For example,I have a string
<h1>Hello</h1>
and use <h:outputText> to display it on browser as HTML.
It shows up on screen as it is, not HTML h1 header that is bold.
From the browser source, I found that the < and > are encoded as
< and >
what I want is that: let user type html and display back as html, not plain
Text.
The persistence is correct: <h1>Hello</h1>.
does JSF <h:outputText> do the conversion? any ideas and
solution will be very helpful.
Thank you very much. Have a nice day!
Dave
Click here to donate to the Hurricane Katrina relief effort.

