2 Replies Latest reply on Jul 6, 2010 5:45 AM by Jaber C. Mourad

    Dynamic menu with menuItem

    Jaber C. Mourad Novice



      I'm looking for a solution to display dynamic menu, all informations for building the menu are in some collection...

      The only solution I find is this one :


                      <c:forEach items="#{processChooserBean.processCategories}" var="category">
                         <rich:panelMenuGroup label="#{category.name}" expanded="true">
                              <c:forEach items="#{category.processes}" var="process">
                                  <rich:panelMenuItem label="#{process.name}" action="#{bpmProcessControler.showProcessDefinition}" >
                                      <f:param name="processKey" value="#{process.key}"/>


      It works in standalone web app but there are big trouble with jboss portal bridge (no navigation, action is not executed !)...


      So I'm looking for a other way, more JSF... I tried to replace c:forEach by ui:repeat but it does not work !


      Is there any other way to display a menu and perform the action correctly ?