O'Reilly logo

PrimeFaces Beginner's Guide by K. Siva Prasad Reddy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – using global tooltips

Let us see how we can use global tooltips to display tooltips for all the components, which are specifying the title attribute. Perform the following steps:

  1. Include a global Tooltip component and specify tooltips for various components using the title attribute as follows:
    <p:tooltip />
    <h:form>
        <h:panelGrid id="grid" columns="2" cellpadding="5">
            <h:outputText value="Input: " />
            <p:inputText id="focus" title="Tooltip for an input"/>
    
            <h:outputText value="Link: " />
            <h:outputLink id="fade" value="#" title="Tooltip for a link">
                <h:outputText value="Fade Effect" />
            </h:outputLink>
    
            <h:outputText value="Button: " />
            <p:commandButton value="Update" title="Update Components" update="@parent"/> </h:panelGrid> </h:form> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required