My bean provides a map which has a String key and a list value. For each of these lists a rowGroup should be created and the items of the list should be rendered as tableItems. The key goes into the rowGroup name. I tried with forEach and ui:repeat, but it doesn't work out:
Code: Select all
<i:view id="aview" title="A View">
<f:facet name="leftNavBar">
<i:navBarControl label="Home" view="home" />
</f:facet>
<h:form prependId="false">
<i:tableView id="aTable" display="group">
<ui:repeat value="#{myBean.groups}" var="group">
<i:rowGroup title="#{group.key">
<ui:repeat var="aItem" value="#{group.value}">
<i:rowItem>
<h:outputText value="#{aItem.name}" />
</i:rowItem>
</ui:repeat>
</i:rowGroup>
</ui:repeat>
</i:tableView>
</h:form>
</i:view>