Board index JavaServer Faces General Tooltip not displaying near component

Tooltip not displaying near component

Components, Ajax Framework, Utilities and More.


Posts: 36
I'm trying to use non-global tooltips. My page is using a template, and displays two <ui:define> sections. The tooltip is in the top/first <ui:define> section. This section contains a toolbar which itself contains a commandButton/arrow. I want the tooltip to appear next to the arrow/button. It appears an inch or so below the button, and at least two inches to the right. Is there a fix for this?

<ui:define name="main_base_content_top">
                <h:form>
                    <p:toolbar>
                        <p:toolbarGroup align="left">
                            <h:commandButton id="nav_arrow_back" image="/resources/images/arrow_left_24x24.png" value="Return to Report Main Selection" action="report_main_selection?faces-redirect=true" />
                        </p:toolbarGroup>

                        <p:toolbarGroup align="right">
                            <h:outputLabel value="#{userListReportInputPageBean.toolbarDescription}" />&nbsp;&nbsp;
                        </p:toolbarGroup>
                    </p:toolbar>
                    <p:tooltip for="nav_arrow_back" value="Return to Report Main Selection" />
                </h:form>
            </ui:define>
Sean - WDG
PF 2.2 JSF 2.0 NetBeans 6.9.1 Glassfish 3.0.1 Mojarra 2.0.3


Posts: 44
Location: Russia
The same thing for me. Using PF 2.2. Only global tooltip displays at the correct position
JSF: Mojarra 2.1 | PrimeFaces 2.2.1 | Glassfish 3.1


Posts: 36
That's what I realized. Then I took out the <p:tooltip> component, and realized that the browser was displaying a tooltip using the individual components' title attribute. I don't know if that is why the non-global tooltip has issues, but it works the same so I'll use it.
Sean - WDG
PF 2.2 JSF 2.0 NetBeans 6.9.1 Glassfish 3.0.1 Mojarra 2.0.3


Return to General