2 Replies Latest reply on Jun 4, 2009 2:16 PM by msantana

    Dynamic menu with dynamic action

    msantana

      Hi everyone!.
      I´ve made a dynamic menu, which loads the information from a table on my database, which has an attribute called action.
      So I want to made something like this:






       <rich:dropDownMenu id="Mantenimientos" value="Mantenimientos" rendered="#{identity.loggedIn}">
           <c:forEach var="item" items="#{menuHome.functions}">
              <rich:menuItem submitMode="ajax" value="#{item.nombre}" action="#{item[item.action]}"/>
           </c:forEach>
         </rich:dropDownMenu>
      



      But this doesnt seems to work.
      I only want to put into de action attribute the value of the attribute called action on the item.


      Someone can help me with this?


      Thank you very much guys!