1 Reply Latest reply on Apr 20, 2011 6:45 PM by raid3n

    c:forEach within rich:dropDownMenu

    raid3n Newbie

      Helloooo,

       

      I want to iterate rich:menuItem. I read on this forum and http://mkblog.exadel.com/2009/01/creating-richdropdownmenu-dynamically/

       

      But it doesn't work. I'm using rf4 final, jstl 1.2 and xmlns:c="http://java.sun.com/jstl/core".

       

      <rich:toolbar>

                          <rich:dropDownMenu mode="ajax">

                                    <f:facet name="label">

                                              <h:outputText value="Language" />

                                    </f:facet>

                                    <c:forEach items="#{languageBean.menuItems}" var="item">

                                              <rich:menuItem label="#{item}" />

                                    </c:forEach>

                          </rich:dropDownMenu>

                </rich:toolbar>

       

       

      menuItems is a List<String>.

       

      dropDownMenu is empty. What's the final solution?