You
have to include HTML tags within <f:verbatim>
Like
<f:verbatim><h1>Hello</h1></f:verbatim>
OR
<h:outputText>
<f:verbatim><h1>Hello</h1></f:verbatim>
</h:outputText>
But it
is always better to avoid HTML tags and use style or styleclasses for Faces
tags.
Balaji
-----Original Message-----
From: javaone9 [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 September 2005 12:47 PM
To: [email protected]
Subject: outputText: display a html sectionHello,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.
| This correspondence is for the named persons only. It may contain confidential or privileged information or both. No confidentiality or privilege is waived or lost by any mis transmission. If you receive this correspondence in error please delete it from your system immediately and notify the sender. You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient. Any opinions expressed in this message are those of the individual sender except where the sender expressly, and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland. |

