Header is a UIPanel component that renders a <div> tag. Since it extends HtmlPanelGroup, it supports all the features of h:panelGroup.

General Usage

The component is used to display header text by specifying the title attribute. It can also display a clickable back icon.


Text de la capçalera


Text de la capçalera

Codi font

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

		<!-- Example 1: Specifying an internationalized key (provided by the portal) for the title attribute. -->
		<portal:header  title="home" />

		<!-- Example 2: Specifying an EL expression for the title attribute. -->
		<portal:header  title="#{i18n['header-text']}" />

		<!-- Example 3: Specifying the backLabel and backURL attributes to define the hyperlink for the back icon. -->
		<portal:header backLabel="#{i18n['navigation']}" backURL="javascript:history.go(-1);"
			 title="#{i18n['header-text']}" />

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