Portal Showcase

portal:header

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.

Home

Header Text

Navigation

Header Text

Source Code

<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:portal="http://liferay.com/faces/portal">

	<!-- 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']}" />

</ui:composition>
Liferay Faces Bridge Implementation 4.0.0 + Liferay Faces Portal 3.0.0 + Showcase Common 3.0.0 + Liferay Faces Util 3.0.0 + Mojarra 2.2.13