1 Reply Latest reply on Jan 2, 2009 11:40 AM by traysa b

    Howto Create a Dynamic menu using <rich:PanelMenu>??

    Jan-Martijn Wijnholds Newbie

      Hi everyone,

      i'm hopelessly try to build a rich PanelMenu in een dynamic way, but i't not working for me. I'v tried it using <c:forEach>:

      <h:form id="form">
       <h:panelGrid columns="2" columnClasses="cols" width="100%">
       <rich:panelMenu style="width:275px" mode="ajax"
       iconExpandedGroup="triangle" iconCollapsedGroup="triangle"
       iconExpandedTopGroup="triangleUp" iconGroupTopPosition="right"
       <rich:panelMenuGroup label="Kennisgebieden">
       <c:forEach items="#{kennisgebiedController.kennisgebieden}" var="item">
       <rich:panelMenuItem label="#{item.titel}" >
       <f:param name="current" value="F:Parameter"/>

      But then i get an empty menu. I seams that the DataModel is empty witch is passed through the kennisgebiedController.kennisgebieden method.

      I also tried it with a bean. But also that way I can find a solution.

      Can someone give me some tips or even een turorial on how to build this menu dynamicly.

      Thnx in advance!