-1
 <h:selectOneMenu id="sType"value="#{sBean.sCriteria.sType}" style="width:200px;" styleClass="black" onchange="sTypeChanged();">
<f:selectItems value="#{sBean.allSTypes}" />
</h:selectOneMenu>

I am using the above code in my xhtml file. I want to add "tool tip" in my selectOneMenu tag. How can I do this?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
vinayaka
  • 39
  • 1
  • 9

2 Answers2

0

Please look at this question hope ot helps How to add tooltip to f:selectItems

Try ans use the title attributes best thing will be to bind the title in a map in the backing bean and use it here dynamically

Community
  • 1
  • 1
Rahul Singh
  • 19,030
  • 11
  • 64
  • 86
-1

Use the title attribute of selectOneMenu

<h:selectOneMenu id="sType"
                 title="tooltip_goes_here"
                 ...

http://docs.oracle.com/javaee/5/javaserverfaces/1.2/docs/tlddocs/h/selectOneMenu.html

Vasan
  • 4,810
  • 4
  • 20
  • 39