Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with the Tooltip  RSS feed

 
Carlos Mauro Cardenas Fernandez
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
problem.png
[Thumbnail for problem.png]
Tooltip Fail
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are navigating to an entirely new page, then artifacts of the previous page are supposed to be erased, although bugs in the GUI of your browser may occassionally orphan them instead. I've had that problem often, alas. It's nothing to do with Java or JSF, just sloppy object management on the client machine.

On the other hand, if you are simply refreshing the page via partial page update (AJAX), there's more potential for you to do something wrong.

The one thing that does stand out to me is your use of the hideEvent attribute. I have never found the need for it myself. Also, I think that the default action of having the mouse leave the tooltip area is to hide the tooltip anyway. Assuming you didn't just add that to try and solve your problem.

You might be able to gain some insight if you use a javascript debugger. That's about the best I can offer.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!