arya-blue
luna-amber
luna-blue
luna-green
luna-pink
nova-dark
nova-light
saga-blue
vela-blue
Tooltip
Global tooltip uses title values of JSF components. Global tooltips are normally applied to all components on a page. But this behavior can be done much smarter. Global tooltips can be limited to specified components by the "for" attribute. The example below shows a case when tooltips only appear for components which didn't pass validation (in this case required inputs). This is a quite nice replacement for regular error messages.
Source

<h:panelGrid id="details" columns="2" columnClasses="formColumn1,formColumn2">
    <p:outputLabel for="firstName" value="First Name: "/>
    <p:inputText id="firstName" required="true" title="#{component.valid ? '' : 'First Name can not be empty'}"/>
    <p:outputLabel for="lastName" value="Last Name: "/>
    <p:inputText id="lastName" required="true" title="#{component.valid ? '' : 'Last Name can not be empty'}"/>
</h:panelGrid>

<p:commandButton value="Submit" process="details" update="details tooltip" style="margin-top: 10px;"/>

<pe:tooltip id="tooltip" global="true" for="@(.ui-state-error)" header="Error" styleClass="qtip qtip-red qtip-rounded qtip-shadow" myPosition="left center" atPosition="right center" />
            
Components and more
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