Portal Showcase


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

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

	<h:outputText value="#{i18n['this-text-will-not-be-rendered']}"/>
	This text won't be rendered too
	<ui:composition 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 4.1.0 + Liferay Faces Portal 3.0.2-SNAPSHOT + Showcase Common 3.0.1 + Liferay Faces Util 3.1.0 + Mojarra 2.2.17