6 Replies Latest reply on Oct 13, 2009 6:48 PM by Jeremy Spring

    ui:repeat with rich:menuItems?

    Eric H Novice

      I'm trying to have a menu that displays the ten most recent news items like this:



      <rich:dropDownMenu submitMode="none" value="Recent news">
        <ui:repeat value="#{newsQuery.recentItems}"
                             var="newsItem">
           <rich:menuItem>
              <h:outputText value="#{newsItem.title}"/>
           </rich:menuItem>
         </ui:repeat>
      </rich:dropDownMenu>




      Except that that doesn't work; the news items never get added to the drop-down.


      Any ideas on what could be blocking this?


      Thanks