portal:nav

Nav is a UIData (iterator) component that renders a <ul>...</ul> (unordered) list. It is designed to be used in conjunction with portal:navItem child component tags.

General Usage

Child portal:navItem child component tags are rendered as <li>...</li> (list item) elements.

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>
		<portal:nav  responsive="false">
			<portal:navItem>
				<h:commandLink value="Compatible" />
			</portal:navItem>
			<portal:navItem>
				<h:commandLink value="Enterprise Ready" />
			</portal:navItem>
			<portal:navItem>
				<h:commandLink value="Powerful Integration" />
			</portal:navItem>
			<portal:navItem>
				<h:commandLink value="Lightweight" />
			</portal:navItem>
			<portal:navItem>
				<h:commandLink value="Open Source" />
			</portal:navItem>
		</portal:nav>
	</h:form>

	<h:form>
		<portal:nav  responsive="false"
			styleClass="nav-list">
			<portal:navItem iconCssClass="icon-github" href="https://github.com/liferay/liferay-faces" label="Source Code" />
			<portal:navItem iconCssClass="icon-twitter" href="https://twitter.com/liferayfaces" label="@liferayfaces" />
		</portal:nav>
	</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