Another common task for web applications is to render text in the browser. The HTML markup language includes a number of elements that can be used to render text. JSF includes standard components that represent these HTML elements and extend their capabilities to include support for internationalization, conditional rendering, formatted text, validation messages, and more.
Many elements in HTML, such as
<p>, <div>, <span>, and
<label> for example, can be used to render text. The JSF
<h:outputText> tag renders the
HtmlOutputText component as an arbitrary text value or as a
<span> element that contains text if CSS attributes on the tag are set. The
<h:outputText> can be used to render plain text or HTML that originates from the backing ...