portal:header

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

Algemeen Usage

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

Startpagina

Koptekst

Navigatie

Koptekst

Source Code

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

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

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

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

</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