6 Replies Latest reply on Jun 5, 2008 11:34 AM by vksystech

    Dynamic Panel Menu with RichFaces not working

      I am trying to generate menu dynamically using the RichFaces (3.1.5), rich:panelMenu component where two iterations, one outer for the rich:panelMenuGroup and an inner one for rich:panelMenuItem are performed. The c:forEach tag is used for looping in both cases and data is contained in Lists.

      The code is given below: Any pointers on how to get this dynamic generation working would be great.

      I have the code working when JSF data table is used. (JSF 1.2)

      <rich:panelMenu id="panelMenu" style="width:200px" mode="ajax"
       iconExpandedGroup="disc" iconCollapsedGroup="disc"
       iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right"
       iconCollapsedTopGroup="chevronDown" iconGroupTopPosition="right">
      
       <c:forEach items="#{readMenu.menuGroupList}" var="group">
       <rich:panelMenuGroup label="#{group.groupName}" expanded="true">
       <c:forEach items="#{group.menuItem}" var="item">
       <rich:panelMenuItem label="#{item.Name}"
       action="#{panelMenu.updateCurrent}">
       < f:param name="current" value="#{item.name}" />
       </rich:panelMenuItem>
       </c:forEach>
       </rich:panelMenuGroup>
       </c:forEach>
       </rich:panelMenu>