>>> [EMAIL PROTECTED] 09/06/05 03:54AM wrote >>>

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.

<<<

I disagree with that last statement. HTML *should* be used for semantic
markup. CSS styles are intended to enhance HTML, not replace it!

There are good reasons for writing web pages using semantic markup to
do with accessibility. It makes them work better with text-only browsers
and makes it easier for users to override styles with browser stylesheets
(eg visually impaired, changing to more readable fonts).

This goes back to the "jsf and usability" thread a few days ago. The UK
is another country with disability legislation - education websites MUST
be accessible, which means they must work without JavaScript, though
we can make enhancements or better versions with JS.


Jon

>>>
-----Original Message-----
From: javaone9 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 6 September 2005 12: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 &lt; and &gt;

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
<<<


_________________________________________________________________
Dr JW Harley                                  Senior Technologist
E-lab, IT Services Department, University of Warwick, Coventry UK
<[EMAIL PROTECTED]>    www.warwick.ac.uk/staff/J.W.Harley/

Reply via email to