Documentation
JSFToolbox

Search 

Contents

  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
Selected 12. JSF Tag Reference

12. JSF Tag Reference

Contents > JSF Tag Reference > JSF HTML Tags

10. JSF HTML Tag Reference

Contents > JSF HTML Tag Reference > h:outputFormat

h:outputFormat

The outputFormat tag renders parameterized text and allows you to customize the appearance of this text using CSS styles. Parameterized text is compound text containing placeholder values to be replaced by actual values at rendering time. See also the param tag.

Example:

<h:outputFormat value="Welcome, {0}. You have {1} new messages.">
  <f:param value="#{userBean.user.firstName}" />
  <f:param value="#{userBean.user.messageCount}" />
</h:outputFormat>

HTML Output

Welcome, John. You have 12 new messages.

Tag Attributes

binding String
 
The value-binding expression linking this component tag to a backing bean property.
converter String
 
The converter attribute sets the converter instance to be registered for this component. It must match the converter-id value of a converter element defined in your Faces configuration file.
escape String
 
The escape attribute is a boolean flag that determines if sensitive HTML and XML characters should be escaped in the ourput generated by this component. The default value for this attribute is "true".
id String
 
The unique identifier value for this component. The value must be unique within the closest naming container.
rendered String
 
A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered.
style String
 
The style attribute sets the CSS style definition to be applied to this component when it is rendered.
styleClass String
 
The styleClass attribute sets the CSS class to apply to this component when it is rendered.
title String
 
The title attribute is a standard HTML attribute that sets the tooltip text to display for the rendered component.
value String
 
The value attribute sets the current value for this component.