Portal Showcase

ui:fragment

This component has many similarities comparing to ui:component. Use ui:fragment if you want to render any content and the surrounding content too (unlike in ui:component).

General Usage

This text will be rendered This text will be rendered too
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-be-rendered']}"/>
	This text will be rendered too
	<ui:fragment>
		<br/>
		<h:outputText value="#{i18n['this-text-will-be-rendered']}"/>
	</ui:fragment>

</ui:composition>
Liferay Faces Bridge Implementation 4.1.0 + Liferay Faces Portal 3.0.1 + Showcase Common 3.0.1 + Liferay Faces Util 3.1.0 + Mojarra 2.2.14