arya-blue
luna-amber
luna-blue
luna-green
luna-pink
nova-dark
nova-light
saga-blue
vela-blue
Tooltip
In shared mode a single tooltip is shared between multiple targets. Tooltip's content is shared and reduces markup. A typically example is one and the same tooltip text for each filter field in a datatable with filtering feature.
Please move mouse over filter input fields
SubjectTextTime
subject 0text 01772839427939
subject 1text 11772839427937
subject 2text 21772839427945
subject 3text 31772839427938
subject 4text 41772839427938
Source

<p:dataTable id="sharedTooltipTable" var="message" value="#{dataTableController.messages}"
             paginator="true" rows="5" paginatorPosition="bottom"
             filteredValue="#{dataTableController.filteredMessages}">
    <f:facet name="header">
        Please move mouse over filter input fields
    </f:facet>
    <p:column filterBy="#{message.subject}" headerText="Subject">
        <h:outputText value="#{message.subject}"/>
    </p:column>
    <p:column filterBy="#{message.text}" headerText="Text">
        <h:outputText value="#{message.text}"/>
    </p:column>
    <p:column filterBy="#{message.time}" headerText="Time">
        <h:outputText value="#{message.time}"/>
    </p:column>
</p:dataTable>

<pe:tooltip value="Type any value to filter datatable" for="@(#sharedTooltipTable th .ui-column-filter)"
            shared="true" atPosition="top center" myPosition="bottom center" styleClass="qtip-default"/>
            
Components and more
Documentation pe:tooltip
Attributes (move mouse over the names to see data types)
Name Description
adjustXA positive or negative pixel value by which to offset the tooltip in the horizontal plane (x-axis). Negative values cause a reduction in the value (moves tooltip to the left).Default is 0.
adjustYA positive or negative pixel value by which to offset the tooltip in the vertical plane (y-axis). Negative values cause a reduction in the value (moves tooltip upwards).Default is 0.
atPositionThe corner of the target element to position the tooltips corner at.Default is bottom right.
autoShowThis flag enables showing tooltips automatically after page loading. Auto shown tooltips can not be global or shared.Default is false.
bindingAn EL expression referring to a server side UIComponent instance in a backing bean.Default is generated.
converterEL expression resolves to a converter instance or literal converter ID defining a component converter.
fixedWhen set to true, the tooltip will not hide if moused over, allowing the contents to be clicked and interacted with.Default is false.
forId of the component to attach the tooltip.
globalA global tooltip converts each title attribute to a tooltip.Default is false.
headerHeader or Titlebar of the tooltip. Not applicable on global tooltips.
hideDelayDelay time for hiding the tooltip.Default is 0.
hideEffectHide effect function.Default is fadeOut.
hideEffectLengthDuration for hide effect.Default is 500.
hideEventEvent hiding the tooltip.Default is mouseleave.
idUnique identifier of the component in a namingContainer.Default is generated.
mouseTrackingThis flag enables tooltip's positioning in relation to the mouse.Default is false.
myPositionThe corner of the tooltip to position in relation to the target element.Default is top left.
renderedBoolean value to specify the rendering of the component, when set to false component will not be rendered.Default is true.
sharedA shared tooltip - one tooltip, multiple targets.Default is false.
showDelayDelay time for displaying the tooltip.Default is 0.
showEffectShow effect function.Default is fadeIn.
showEffectLengthDuration for show effect.Default is 500.
showEventEvent displaying the tooltip.Default is mouseenter.
styleClassStyle class of the tooltip will override ThemeRoller theme.
valueValue of the component.
widgetVarName of the client side widget.
PrimeFaces Extensions Showcase - © 2011-2025,PrimeFaces: 16.0.0-SNAPSHOT,PrimeFaces Extensions: 16.0.0-SNAPSHOT,JSF: Apache MyFaces Core 4.0 - Impl 4.0.3,Server: Apache Tomcat (TomEE)/10.1.52 (10.1.4),Build time: 2026-03-06 07:52