I want to use panel menu with iteration following is the code fragment:
<rich:panelMenu mode="ajax" ....>
<a4j:repeat var="menus" value="#{menusBean.mainMenus}">
<rich:panelMenuGroup label="#{menus.name}">
<rich:panelMenuItem label="menu item1"></rich:panelMenuItem>
<rich:panelMenuItem label="menu item2"></rich:panelMenuItem>
</rich:panelMenuGroup>
</a4j:repeat>
</rich:panelMenu>
I always get error: class ...repeat can not cast to ...MenuItem.
used ui:repeat instead of a4j:repeat or c:forEach instead of a4j:repeat
I also can not get a error info.
thanks. thanks.
I am sorry. use c:forEach. it works fine. it is ok. but why do ui:repeat or a4j:repeat not work?