1 Reply Latest reply on Jun 14, 2012 5:53 AM by srikannan balamurugan

    How to Keep Open the dynamic rich:panelMenu state between requests

    srikannan balamurugan Newbie

      Hi everyone,

           I'm trying to keep open the rich:panelMenu group between request, which clicked by user before request starts.

       

       

      I can't create dynamic Id for rich:panelMenuGrouup and also facing problem to use expanded attribute dynamically

       

      i.e..

      expanded = "#{selectedparentId==flowScope.parentIdgetfrompreviousrequest} "

       

      if use like this means, it opens all the Menu Group in panel Menu. ie) It sets true for all the Groups

       

      please give solutions for this problem

       

      Thanks in advance

       

       

      Regards
      Srikannan

        • 1. Re: How to Keep Open the dynamic rich:panelMenu state between requests
          srikannan balamurugan Newbie

          Hi everyone,

               I'm trying to keep open the rich:panelMenu group between request, which clicked by user before request starts.Im using spring web flow in my project

           

           

           

            <rich:panelMenu  >

                                                      <c:forEach items="#{flowScope.queueHierarchy.children}"           var="parentQueue">

                                                      <rich:panelMenuGroup  id="#{parentQueue.queueName}" label="#{parentQueue.queueName}"  >

                                                      

                                                      <c:forEach items="#{parentQueue.children}" var="childQueue" >

                                                      <rich:panelMenuItem   label="#{childQueue.queueName}" action="menuAction" reRender="rightContentPanel"  immediate="true"  mode="ajax">

                                                                            <f:param name="parentMenuOption" value="#{parentQueue.queueName}"></f:param>

                                                                                          <f:param name="childMenuOption" value="#{childQueue.queueName}"></f:param>

                                                                                          <f:param name="queueOwnerId" value="#{childQueue.ownerId}"></f:param>

                                                                                          <f:param name="queueId" value="#{childQueue.queueId}"></f:param>

                                                                                          <f:param name="parentId" value="#{childQueue.parentId}"></f:param>

                                                    </rich:panelMenuItem>

                                                      </c:forEach>

                                                     

                                                      </rich:panelMenuGroup>

                                                    

                                                      </c:forEach>

                                                      </rich:panelMenu>

           

           

           

           

          I can't create dynamic Id for rich:panelMenuGrouup and also facing problem to use expanded attribute dynamically

           

          i.e..

          expanded = "#{selectedparentId==flowScope.parentIdgetfrompreviousrequest} "

           

          if use like this means, it opens all the Menu Group in panel Menu. ie) It sets true for all the Groups

           

          please give solutions for this problem

           

          Thanks in advance

           

           

          Regards
          Srikannan