I have a HashMap in the backing bean and I want to dynamically render multiple select box. Here is the code:
<h:selectManyCheckbox
id="id"
value="#{backingBean.value}"
layout="pageDirection"
styleClass="label"
required="true"
requiredMessage="You must select at least...">
<a4j:repeat var="aGroup" items="#{backingBean.map}">
<f:selectItem id="role#{aGroup.value.property1}" itemLabel="#{aGroup.value.property1}" itemValue="#{aGroup.value.property2}" />
<rich:tooltip for="role" value="#{aGroup.value.property5}" />
</a4j:repeat>
</h:selectManyCheckbox>
It is not rendering. Using the f:selectItems tag, it is rendering, but I need to manually create the f:selecteItem as I have to attach a rich:tooltip with each f:selectItem.
Any ideas ?
Ravi