7 Replies Latest reply on May 13, 2008 4:51 AM by Ilya Shaikovsky

    A bug with ui:repeat with menuItems?

    Eric H Novice

      I have some simple code that looks like this:

      <rich:dropDownMenu submitMode="none" value="News items">
       <ui:repeat value="#{newsQuery.recentNewsEntries()}"
       var="newsItem">
       <rich:menuItem value="#{newsItem.title}"/>
       </ui:repeat>
       </rich:dropDownMenu>


      It seems like that should work, but it doesn't. The drop down is empty when there are items in the ui:repeat value.

      This must be a bug in RichFaces, right? Is there a work-around? This is in RF 3.1.3. It would be a big hassle for me if I don't have some way of making menus with dynamic items and a dynamic number of items in them.

      Thanks