2 Replies Latest reply on Jul 6, 2010 5:45 AM by newbeewan

    Dynamic menu with menuItem

    newbeewan

      Hi,

       

      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 :

       

      <rich:panelMenu>
                      <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}"/>
                                  </rich:panelMenuItem>
                              </c:forEach>
                          </rich:panelMenuGroup>
                      </c:forEach>
                  </rich:panelMenu>

       

      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 ?

       

      Regards