Portal Showcase
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.
Nav Bar Usage
When specified as a child of portal:navBar, the responsive layout feature for small/mobile displays causes the grand-child portal:navItem links to be displayed in a popup menu. This feature is enabled by default when a child portal:nav component tag has collapsible=true
(the default).
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:navBar > <portal:nav> <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> </portal:navBar> </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