• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Richfaces 4 tooltip not displaying

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've been trying to use the Richfaces 4 tooltip demo from the RichFaces Showcase, but I can't get the tooltip to show up. I've tried variations on the two tooltips shown below, but I can't get any tooltip information to display. Do you know what I'm missing to make this work?

 
Saloon Keeper
Posts: 25640
183
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think that tooltips only work when attached to input controls. So they wouldn't be applied to links or panels.

You can fake it, though, since basically a tooltip is a floating HTML DIV that's made visible when you mouse into/over a page element. It's made invisible by mousing out and/or a timeout on mouse movement.
 
Aj Jaro
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's actually not the case. If you look at the RichFaces showcase you'll see that tooltips can be applied to more components than just input controls.

The resolution to this issue was to use the <h:body> tag instead of the HTML body tag. RichFaces creates some additional JavaScript on the close of the <h:body> tag that's used on tooltips.

Thanks for the suggestions though.
 
Tim Holloway
Saloon Keeper
Posts: 25640
183
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK. I think maybe that that was a limitation in RichFaces 3 maybe.

Definitely use the h:head and h:body tags in all JSF2 webapps! As you noted, the proper Javascript doesn't get generated otherwise. Among other things!
 
Humans and their filthy friendship brings nothing but trouble. My only solace is this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic