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?
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.
Sometimes the only way things ever got fixed is because people became uncomfortable.
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.
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!
Sometimes the only way things ever got fixed is because people became uncomfortable.
Humans and their filthy friendship brings nothing but trouble. My only solace is this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss