I am trying to find a way to display a tooltip (or the html 'title' attribute) whenever I mouseOver an option element. I am using JSF's t:selectOneMenu and f:selectItems.
Values for the selectItems are passed as a variable (ArrayList) from my backing bean. My xhtml codes are found below:
<t:selectOneMenu id="mySelectOneMenu" value="#{backerBean.myForm.status}">
<f:selectItems id="mySelectItems" value="#{backerBean.statusSelectItems}"/>
</t:selectOneMenu>
Values for the dropdown are Completed, Failed, and In Progress. I want the tooltip say something about each status whenever hovered on.
I have tried using the rich:tooltip tag but could not get it to work to change dynamically. Can anyone please help me perform this. I am open to javascript or jquery methods. If it can be done using JSF tags and attributes, better!