Tooltip for SelectManyMenu

UI Components for JSF
Post Reply
Lyrionus
Posts: 60
Joined: 31 Aug 2011, 09:09

16 Sep 2011, 09:37

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>
JSF 2.0
Primefaces 3.2
Tomcat 7.0

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

16 Sep 2011, 10:38

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.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 18 guests