h:outputFormat

HtmlOutputFormat is a UIOutput component that renders parameterized text.

General Usage

The value attribute can contain parameterized text in the same manner as MessageFormat and parameter substitution is accomplished via f:param child tags.
First: Alpha, Last: Omega

Source Code

<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:ui="http://xmlns.jcp.org/jsf/facelets">

	<h:form>
		<h:outputFormat  value="First: {1}, Last: {0}">
			<f:param value="Omega" />
			<f:param value="Alpha" />
		</h:outputFormat>
	</h:form>

</ui:composition>
Liferay Faces Bridge Implementation 5.0.0 + Showcase Common 3.1.1 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20