Developing Web 2.0 applications
with JavaServerFaces
and Dreamweaver
>> Just Became Easier
Documentation
Search
  1. Introduction
  2. Getting Started
  3. Developing Web Sites
  4. Using Components
  5. Internationalization
  6. Code View Support
  7. Design View Support
  8. Keyboard Shortcuts
  9. Tag Object Toolbars
  10. JSF Server Behaviors
  11. Property Inspectors
  12. JSF Tag Reference
JSF Core Tag Library
  f:actionListener
  f:ajax
  f:attribute
  f:convertDateTime
  f:convertNumber
  f:converter
  f:event
  f:facet
  f:loadBundle
  f:metadata
  f:param
  f:phaseListener
  f:selectItem
  f:selectItems
  f:setPropertyActionListener
  f:subview
  f:validateBean
  f:validateDoubleRange
  f:validateLength
  f:validateLongRange
  f:validateRegex
  f:validateRequired
  f:validator
  f:valueChangeListener
Selected f:verbatim
  f:view
  f:viewParam
If you like this documentation, please take a look at my book:

12. JSF Core Tag Reference

Documentation > JSF > JSF Tag Reference > JSF Core Tag Library > f:verbatim

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>

Tag Attributes

escape Boolean
 
The escape attribute is a boolean flag indicating that generated markup must be escaped in a way that is appropriate for the markup language to be generated. The default value is false.
rendered Boolean
 
A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered.