arya-blue
luna-amber
luna-blue
luna-green
luna-pink
nova-dark
nova-light
saga-blue
vela-blue
Legend
Legend makes it easy to add a key to your UI.
Vertical Title
  • 0 - 20%
  • 40%
  • 60%
  • 80%
  • 100%
Horizontal Title Facet
  • 0 - 20%
  • 40%
  • 60%
  • 80%
  • 100%
Source

<p:panelGrid id="pnlLegend" columns="2" styleClass="ui-noborder" layout="tabular">
    
        <p:outputLabel value="Vertical" />
        <pe:legend layout="vertical" widgetVar="lgndVertical" values="#{legendController.values}" title="Vertical Title" footer="Source: PrimeFaces"/>
        
        <p:spacer/>
        <p:spacer/>
        
        <p:outputLabel value="Horizontal" />
        <pe:legend layout="horizontal" widgetVar="lgndHorizontal" values="#{legendController.values}">
            <f:facet name="title">
                    Horizontal Title Facet
            </f:facet>
            <f:facet name="footer">
                    Source: <a href="http://www.primefaces.org">PrimeFaces Rocks!</a>
            </f:facet>
        </pe:legend>
        
    </p:panelGrid>
            
Components and more
Use Cases
Documentation pe:
Attributes (move mouse over the names to see data types)
Name Description
No attributes available for this component.
PrimeFaces Extensions Showcase - © 2011-2025,PrimeFaces: 15.0.13,PrimeFaces Extensions: 15.0.14-SNAPSHOT,JSF: Apache MyFaces JSF-2.3 Core Impl 2.3.10,Server: Apache Tomcat (TomEE)/9.0.82 (8.0.16),Build time: 2026-02-23 00:32