JSF Showcase

ui:component

For adding a UIComponent in a JSF component tree, use ui:component.

General Usage

Notice that any elements outside this tag won't be rendered
This text will be rendered

Source Code

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

	<h:outputText value="#{i18n['this-text-will-not-be-rendered']}"/>
	This text won't be rendered too
	<ui:component>
		<br/>
		<h:outputText value="#{i18n['this-text-will-be-rendered']}"/>
	</ui:component>

</ui:composition>
Liferay Faces Bridge Implementation 4.0.0 + Showcase Common 3.0.0 + Liferay Faces Util 3.0.1-SNAPSHOT + Mojarra 2.2.13