JSF Showcase
JSF Showcase
h:panelGroup
HtmlPanelGroup is a UIPanel component that renders a<span>
or a <div>
element for grouping purposes. General Usage
The layout attribute specifies whether the component renders aspan
or a div
.Source Code
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> <!-- Example#1: By default, this component renders a span. --> <h:form> <h:panelGroup styleClass="showcase-example-panel"> #{i18n['this-text-is-inside-a-span-html-tag']} </h:panelGroup> </h:form> <!-- Example#2: Specifying block for the layout attribute causes the component to render a div. --> <h:form> <h:panelGroup layout="block" styleClass="showcase-example-panel"> #{i18n['this-text-is-inside-a-div-html-tag']} </h:panelGroup> </h:form> </ui:composition>
Liferay Faces Bridge Implementation 4.1.0 + Showcase Common 3.0.1 + Liferay Faces Util 3.1.0 + Mojarra 2.2.14