1 Reply Latest reply on Apr 26, 2007 6:35 PM by Sergey Smirnov

    Using repeat to build dropDownMenu

    Dustin Norlander Apprentice


      I realize that dropDownMenu is still in development, but I thought i would post this problem I am having:

      if I use nested a:repeat to build the menu then only the top items are rendered.


       <a:repeat value="#{menuNodeList}" var="node">
       <rich:dropDownMenu event="onmouseover" value="#{node.label}">
       <a:repeat value="#{node.children}" var="child1">
       <rich:menuItem value="#{child1.label}" />

      where menuNodeList is a list of:

      public class MenuNode {
       private String label;
       private String viewId;
       private List<MenuNode> children = new ArrayList<MenuNode> ();
      ... getters and setters ...