My requirement is to provide a tooltip
for every option in the
SelectOneMenu
because label of option is so large
that it's not possible to provide such a large size SelectOneMenu .So the
label is cutting. Thats why i need tooltip to show
the whole value on mouse over of the options in the SelectOneMenu .
Any ideas will be appreciated.
You can use
javascript
. Assume yourselectOneMenu
as below.Add this script at the top of your page.
If you are using a list of "javax.faces.model.SelectItem" you can pass the description attribute to show a tooltip for each and every option.