Same as ui:component, ui:composition can add content to a Facelet page, but, as opposite to ui:component, it won't be added to the component tree.

General Usage

Additionally, it's possible to reuse other Facelet pages using template attribute.

This text comes from a template

Source Code

Liferay Faces Alloy 4.1.1 + Liferay Faces Bridge Implementation 5.0.0 + Showcase Common 4.0.0 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20