1 Reply Latest reply on Mar 10, 2010 2:22 AM by rcroonenberghs

    a4j repeat and dropDownMenu

    rcroonenberghs

      Hi,

       

      I want to dynamically extend my richfaces dropdownmenu with menuitems. I therefore wanted to use the a4j repeat component. but aparently it does not work inside a rich:dropDownMenu component.

       

      <rich:dropDownMenu value="#{msg.menu_download}">
            <a4j:repeat value="#{releases.availableReleases}" var="release" >
                  <rich:menuItem submitMode="none" onclick="#{path.dynamicUrl}#{release.link}">
                     <h:outputLink value="#{path.dynamicUrl}#{release.link}">
                          <h:outputText value="#{release.name}"></h:outputText>   
                     </h:outputLink>                                           
                   </rich:menuItem>
            </a4j:repeat>
      </rich:dropDownMenu>

       

      This does not render any menuitems

       

      When i use the a4j outide the dropdownmenu component it renders correctly

      <a4j:repeat value="#{releases.availableReleases}" var="release" >
                      <h:outputLink  value="#{path.dynamicUrl}#{release.link}">
                           <h:outputText  value="#{release.name}"></h:outputText>   
                      </h:outputLink>  
             </a4j:repeat>

       

      Does anyone know a solution?

       

      Roel