Name

<f:verbatim>

Synopsis

This action represents an instance of the component type registered with the type ID javax.faces.Output (by default, an instance of the javax.faces.component.UIOutput class), combined with a renderer registered with the renderer type ID javax.faces.Text.

The action creates an instance of the component class, sets its value to the evaluation result of the element body, sets the transient property to true and the escape property to the value set by the action attribute with the same name, and adds the component as a child of the component represented by the closest JSF component parent action element.

Syntax

<f:verbatim [escape="true|false">
  Template text and/or non-JSF action elements
</f:verbatim>

Attributes

Attribute Name

Java Type

Dynamic Value Accepted

Description

escape
boolean

Any

If true, render special HTML and XML characters as character entity codes, e.g., < as &lt;.

Example

<f:subview id="header">
  <f:verbatim>
    <html>
      <head>
        <title>Welcome to my site!</title>
      </head>
  </f:verbatim>
</f:subview>

Get JavaServer Faces now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.