TheCoder4eu / BootsFaces-OSP

BootsFaces - Open Source Project
Apache License 2.0
246 stars 102 forks source link

Tooltips not applied in some situations #165

Closed vsvetoslavov closed 9 years ago

vsvetoslavov commented 9 years ago

Currently on some components the tooltip is not shown as a tooltip, but as a title. This can be seen very clearly in the demo page of tooltips - http://www.bootsfaces.net/bootstrap/tooltips.jsf

My tests indicated that the following jquery script seems to fix the problem:

$('[data-toggle="tooltip"]').tooltip();

This seems to make rendering a script for each component's tooltip unnecessary (thus also fixing the button group problem). Maybe some flag can be checked when a component needs a tooltip, in order for the script to be rendered. Of course all this is just a proposal how to achieve the goal of making tooltips work ;)

vsvetoslavov commented 9 years ago

Components where no tooltip is applied (taken from the demo page):

stephanrauh commented 9 years ago

In the case of b:inputText, things look a bit odd. Instead of adding the tooltip to the inputtext, where it belongs, it is added to the surrounding table. But of course it is activated for the input field, not for the table.

stephanrauh commented 9 years ago

As for the global activation of tooltips: introducing a global flag would also allow us to solve #107.

stephanrauh commented 9 years ago

I fixed the components without introducing a global flag.