Board index JavaServer Faces General Tooltip for SelectManyMenu

Tooltip for SelectManyMenu

Components, Ajax Framework, Utilities and More.

Post 16 Sep 2011, 09:37

Posts: 60
Is it actually possible to create a tooltip for selectManyMenu? For each item in the menu i mean, for example you hover over one and you see some more info over it. The tooltip requires a id, but since i load my items from my bean and use select items i can't add the id to it because it would change per item?

Is there a solution for this?

This is one of my menu's i would like to add a tooltip to:

<p:selectManyMenu value="#{profileBean.selectedAllPermissions}" converter="#{profileBean.converter}"  style="height:300px;width:200px;"> 
    <f:selectItems value="#{profileBean.allPermissions}" var="allPermission" itemLabel="#{allPermission.permissionCode}" itemValue="#{allPermission}" /> 
JSF 2.0
Primefaces 3.2
Tomcat 7.0

Post 16 Sep 2011, 10:38
Oleg User avatar
Expert Member

Posts: 3771
Location: Russia, Siberia => Germany, Black Forest
You can use native tooltip widgets which accept any jQuery selector. I use e.g. qTip2 Select you options in select box by their values e.g. in assign them tooltips. Never tried, but should work.

Return to General