3 Replies Latest reply on Feb 3, 2014 4:38 PM by bleathem

    Problem with the Tooltip

    unimauro

      I have a tooltip implemented on a main page, but when you click the link tooltip box gets stuck on next page

       

      <h:outputText value="#{it.get(newItem.strCampoNombre)}" rendered="#{newItem.strCampoTipo == '1' or newItem.strCampoTipo == '5' or newItem.strCampoTipo == '4' or newItem.strCampoTipo == '9' or newItem.strCampoTipo == '10' or newItem.strCampoTipo == '11'}" />

      <h:outputText value="#{it.get((newItem.strCampoToolTip))}" rendered="#{newItem.strCampoTipo == '8'}" />

      <rich:tooltip styleClass="tooltip" layout="block" rendered="#{newItem.strCampoTipo == '8'}" showDelay="500" onhide="false" hideEvent="mouseleave">

      <span class="wrap"> <h:outputText value="#{it.get(newItem.strCampoNombre)}" /> </span>

      </rich:tooltip>

       

      problem.png

       

      I tried to change the  tooltip parameter but didnt find the solution.

        • 1. Re: Problem with the Tooltip
          bleathem

          Can you provide a simple sample we can run locally to reproduce this issue?

          • 2. Re: Problem with the Tooltip
            unimauro

            Ok:

            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
            <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:fn="http://java.sun.com/jsp/jstl/functions">
                <script
                    src="${facesContext.externalContext.requestContextPath}/resources/js/util.js"></script>
            
            <h:outputText value="#{it.get(newItem.strCampoNombre)}"
                                rendered="#{newItem.strCampoTipo == '1' or newItem.strCampoTipo == '5' or newItem.strCampoTipo == '4' or newItem.strCampoTipo == '9' or newItem.strCampoTipo == '10' or newItem.strCampoTipo == '11'}" />
                            <h:outputText value="#{it.get((newItem.strCampoToolTip))}"
                                rendered="#{newItem.strCampoTipo == '8'}" />
                            <rich:tooltip styleClass="tooltip" layout="block"
                                rendered="#{newItem.strCampoTipo == '8'}" showDelay="300" onhide="false" hideEvent="mouseleave" onbeforehide="true" onclick="true">
                                <span class="wrap"> <h:outputText
                                        value="#{it.get(newItem.strCampoNombre)}" /> </span>
                            </rich:tooltip>
            
            <a4j:commandLink binding="#{newItem.objCommandLink}"
                                onclick="displayElemento('div_capaMayor', '');displayElemento('exito_div', 'none'); displayElemento('error_div', 'none');"
                                disabled="#{it.get('Disable')}"
                                oncomplete="displayElemento('div_capaMayor', 'none'); if(#{facesContext.validationFailed}) displayElemento('error_div', ''); if(!#{facesContext.validationFailed}) #{richFacesCompMBean.openPopUp(newItem.strIdPopUp)};"
                                rendered="#{newItem.strCampoTipo == '2' or newItem.strCampoTipo == '7'}"
                                styleClass="decoration_componenteTabla">
                                <h:graphicImage value="#{it.get(newItem.strCampoNombre)}"
                                    styleClass="imagen_componenteTabla" />
            </a4j:commandLink>
                            <h:graphicImage value="#{it.get(newItem.strCampoNombre)}"
                                styleClass="imagen_componenteTabla"
                                rendered="#{newItem.strCampoTipo == '6'}" />
            
            <a4j:ajax event="click" execute="@all" render="#{chkSingleBoxRender} #{jQueryBlkId}" listener="#{richFacesCompMBean.selectOneCheckBox(tabIndex, it, chkBoxAct, classN)}"></a4j:ajax>
            </h:selectBooleanCheckbox>
            
            • 3. Re: Problem with the Tooltip
              bleathem

              This is not helpful, as you have not provided any backing bean code, and is hence not runnable.  Please refer to the guide: Short, Self Contained, Correct (Compilable), Example.  For the purposes of JSF/RichFaces, an sscce sample consists of a small (preferably maven based) project that can be built and deployed locally.  If should contain only those libraries, classes, and page code absolutely required to reproduce the problem.

              1 of 1 people found this helpful