3 Replies Latest reply on Jul 31, 2009 5:38 PM by guus vorsterman

    Dynamic Context menu from database

    T Rixom Newbie

      Hi,


      I can see examples of the c:forEach tag working for
      dynamic panelmenus, but I am trying to get a dynamic
      context menu working:


      <rich:contextMenu 
         id="dangerContextMenu"
         event="oncontextmenu"
         submitMode="none">
         <rich:menuGroup
            value="#{messages.add_dangers}"     
            submitMode="none">
            <c:forEach
               items="#{dangerList.resultList}" 
               var="danger">
               <rich:menuItem 
                  value="#{danger.name}" />
            </c:forEach>
         </rich:menuGroup>
      </rich:contextMenu>
      



      Can someone point me in the right direction?


      Thanks,


      Tom