f:verbatim |
|
The Verbatim tag creates an output component as a child of the component
associated with the enclosing tag. An output component renders the output
contained in the body of this tag, such as HTML markup.
Note: this tag is
more useful with JSP than with Facelets. This is because Facelets handles HTML
mixed with JSF markup in a different way than JSP. For this reason, this tag is
not necessary when using Facelets.
JSF Example
<%@ page language="java" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
</head>
<body>
<f:view>
<f:verbatim escape="true">
<span>This HTML will be escaped.</span>
</f:verbatim>
</f:view>
</body>
</html>
This example was formatted by JSFToolbox for Dreamweaver.
HTML Output
<span>This HTML will be escaped.</span>
|