Portal Showcase
ui:include
ui:include has a similar behavior from ui:decorate, but in this case the tools provided by templating sections (ui:define and ui:insert) won't work.General Usage
This text comes from a template
Codi font
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> <ui:include src="template.xhtml"/> </ui:composition>
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:h="http://xmlns.jcp.org/jsf/html"> <br/><br/> <h:outputText value="#{i18n['this-text-comes-from-a-template']}"/> </ui:composition>
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