title: Primefaces tooltip for p:selectManyCheckbox or other p:selectMany*/One*
body: <p>I would like to add a tooltip for each element in a <code>p:selectManyCheckBox</code>. However I can't come up with a solution.</p>
  
  <p>I've got a class <code>Role</code> that has 3 properties, "id" (Long), "name" (String) and "description" (String). The name is displayed and I would like to have the description as a tooltip.</p>
  
  <p>This is a working piece of code:</p>
  
  <pre><code>&lt;p:selectManyCheckbox layout="pageDirection" value="#{roleBean.selectedRoles}" converter="roleConverter"&gt;
      &lt;f:selectItems value="#{roleBean.roles}" var="role" itemLabel="#{role.name}" itemValue="#{role}"/&gt;
  &lt;/p:selectManyCheckbox&gt;
  </code></pre>
  
  <p>The <code>roleConverter</code> is a <code>FacesConverter</code> that converts the <code>Role</code> to an id and visa versa.</p>
  
  <p>I came up with this:</p>
  
  <pre><code>&lt;p:selectManyCheckbox layout="pageDirection" value="#{roleBean.selectedRoles}" converter="roleConverter"&gt;
      &lt;c:forEach var="role" items="#{roleBean.roles}"&gt;
          &lt;f:selectItem id="role#{role.id}" itemLabel="#{role.name}" itemValue="#{role}" /&gt;
          &lt;p:tooltip for="role#{role.id}" value="#{role.description}"/&gt;
      &lt;/c:forEach&gt;
  &lt;/p:selectManyCheckbox&gt;
  </code></pre>
  
  <p>But unfortunately it doesn't work.</p>