Very similar to ui:composition, ui:decorate Facelet can add content to the current JSF page, but will add all the external elements to it (just the opposite as ui:composition does).

General Usage

For templating reusing, you can use template attribute pointing to a JSF page.
This text will be rendered This text will be rendered too This text comes from a template

Source Code

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

	<h:outputText value="#{i18n['this-text-will-be-rendered']}"/>
	This text will be rendered too
	<ui:decorate template="template.xhtml"/>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    <h:outputText value="#{i18n['this-text-comes-from-a-template']}"/>

Liferay Faces Bridge Implementation 5.0.0 + Liferay Faces Portal 5.0.0 + Showcase Common 3.1.1 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20