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

Source Code

<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 4.1.0 + Liferay Faces Portal 3.0.1 + Showcase Common 3.0.1 + Liferay Faces Util 3.1.0 + Mojarra 2.2.14