Page 1 of 1

Tooltip for SelectManyMenu

Posted: 16 Sep 2011, 09:37
by Lyrionus
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:

Code: Select all

  
<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}" />  
</p:selectManyMenu>

Re: Tooltip for SelectManyMenu

Posted: 16 Sep 2011, 10:38
by Oleg
You can use native tooltip widgets which accept any jQuery selector. I use e.g. qTip2 http://craigsworks.com/projects/qtip2/ Select you options in select box by their values e.g. in assign them tooltips. Never tried, but should work.