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

    Using repeat to build dropDownMenu

    dustismo

      Hello,

      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.

      ex:

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


      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 ...
      }
      


      thanks,
      Dustin