2 Replies Latest reply on Apr 28, 2008 7:36 AM by osvaldo gomez

    rich:panelMenuGroup

    osvaldo gomez Newbie

      Hi everybody,

      I'm using a rich:panelMenuGroup component, but I want to fill it on dynamic way. How can I do it?, cause I think there aren't any component or instruccion that allow iterate a collection with this panel. Is it possible?

        • 1. Re: rich:panelMenuGroup
          Sergey Smirnov Master

          you can do it from the java code (like any other JSF component) or on the page using Facelets' c:forEach

          • 2. Re: rich:panelMenuGroup
            osvaldo gomez Newbie

            Sergey:

            I did it in this way:

            <rich:panelMenu style="width:200px" mode="ajax"
            iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right"
            iconCollapsedTopGroup="chevronDown" >

            <rich:panelMenuGroup label="NODOS" >
            <c:forEach items="${userLogin.user.nodes}" var="node">
            <rich:panelMenuItem>
            <c:out value="${node.name}"></c:out>
            <c:url value="userLogin.getBynode">
            <c:param name="current" value="${node.id}"/>
            </c:url>
            </rich:panelMenuItem>
            </c:forEach>
            </rich:panelMenuGroup>

            </rich:panelMenu>

            but when the component is rendered it display

            NodoEjem1 ?current=1

            obviusly I hope to show only NodoEjem1 and NOT to show '?current=1'

            What did I make wrong whit this, can you help me please?

            Thank you