• Settings
    • Locale
    • Change the locale of the datepicker, schedule and client side validation messages.

      Language
      English
      English
      English
      French
      German
      German
      German
      Italian
      Korean
      Spanish
      Catalan
      Dutch
      Portuguese
      Portuguese
      Arabic
      Arabic
      Bulgarian
      Bangla
      Bosnian
      Czech
      Greek
      Estonian
      Persian
      Finnish
      Danish
      Hindi
      Indonesian
      Icelandic
      Croatian
      Japanese
      Hungarian
      Hebrew
      Georgian
      Central Kurdish
      Khmer
      Kyrgyz
      Kazakh
      Lithuanian
      Latvian
      Malay
      Norwegian
      Polish
      Romanian
      Russian
      Slovak
      Slovenian
      Serbian
      Serbian
      Swedish
      Thai
      Turkish
      Ukrainian
      Uzbek
      Vietnamese
      Chinese
      Chinese
  • Resources

Tooltip Global

In global mode a single tooltip uses the title values of all (or selected) components on the page and survives Ajax updates. Based on qTip2 - Pretty powerful tooltips.

Tooltip Tag Documentation

Advanced Tooltip component.

NameTypeRequiredDefaultDescription
id String false generated Unique identifier of the component in a namingContainer.
rendered boolean false true Boolean value to specify the rendering of the component, when set to false component will not be rendered.
binding UIComponent false generated An EL expression referring to a server side UIComponent instance in a backing bean.
widgetVar String false generated ('widget_' + componentClientId) Name of the client side widget.
adjustX int false 0 A 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).
adjustY int false 0 A 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).
atPosition String false bottom right The corner of the target element to position the tooltips corner at.
autoShow boolean false false This flag enables showing tooltips automatically after page loading. Auto shown tooltips can not be global or shared.
converter Converter false EL expression resolves to a converter instance or literal converter ID defining a component converter.
fixed boolean false false When set to true, the tooltip will not hide if moused over, allowing the contents to be clicked and interacted with.
for String false Id of the component to attach the tooltip.
global boolean false false A global tooltip converts each title attribute to a tooltip.
header String false Header or Titlebar of the tooltip. Not applicable on global tooltips.
hideDelay int false 0 Delay time for hiding the tooltip.
hideEffect String false fadeOut Hide effect function.
hideEffectLength int false 500 Duration for hide effect.
hideEvent String false mouseleave Event hiding the tooltip.
mouseTracking boolean false false This flag enables tooltip's positioning in relation to the mouse.
myPosition String false top left The corner of the tooltip to position in relation to the target element.
shared boolean false false A shared tooltip - one tooltip, multiple targets.
showDelay int false 0 Delay time for displaying the tooltip.
showEffect String false fadeIn Show effect function.
showEffectLength int false 500 Duration for show effect.
showEvent String false mouseenter Event displaying the tooltip.
styleClass String false Style class of the tooltip will override ThemeRoller theme.
value Object false Value of the component.
Tag Documentation Widget Source Customized Auto Shown Global
Global limited tooltips

Global tooltips can be limited to specific components with the for attribute. Here tooltips only appear for inputs that failed validation, a nice replacement for regular error messages. Submit the empty form.

Global tooltips

A global tooltip without for applies to every element with a title on the page, including the showcase shell. It is therefore shown on its own standalone page.

Show global tooltips

Usage


<div class="card">
    <h5>Global limited tooltips</h5>
    <p>Global tooltips can be limited to specific components with the <code>for</code> attribute. Here tooltips only appear for inputs that failed validation, a nice replacement for regular error messages. Submit the empty form.</p>
    <h:form id="formGlobalLimitedTooltips">
        <h:panelGrid id="details" columns="2" cellpadding="4">
            <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="@(.p-state-error)" header="Error" styleClass="qtip qtip-red qtip-rounded qtip-shadow" myPosition="left center" atPosition="right center"/>
    </h:form>
</div>

<div class="card">
    <h5>Global tooltips</h5>
    <p>A global tooltip without <code>for</code> applies to every element with a <code>title</code> on the page, including the showcase shell. It is therefore shown on its own standalone page.</p>
    <p:linkButton value="Show global tooltips" icon="pi pi-external-link" target="_blank"
                  href="#{request.contextPath}/ui/overlay/tooltip/standalone/global"/>
</div>