Hi,
I am trying to use a Dropdown menu, but I'd like the generated HTML to
have a "title" attribute, which will give each menu item a tooltip.
This is to allow long menu items in a dropdown menu with a fixed length.
Here is what I am doing now:
<h:selectOneMenu id="companySelect"
value="#{CompanySelectBean.companySelection}"
binding="#{CompanySelectBean.companySelectOneRadio}">
<f:selectItems value="#{CompanySelectBean.companyFiles}" />
</h:selectOneMenu>
I saw that there is an <f:attribute> tag that might let me add
attributes to a single <f:selectItem>, but using the multiple version
<f:selectItems> is it possible? Can I set the "title" attribute
programmatically? The CompanySelectBean is returning an array of
SelectItems, is there an alternative subclass that would do this in
MyFaces perhaps?
ChuckBetts | Software Engineer - Shared Development & Services - SPC |
Intuit, Inc. 858-525-8616