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 a span or a div.
This text is inside a <span> HTML tag
This text is inside a <div> HTML tag

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 5.0.0 + Showcase Common 3.1.1 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20