0 Replies Latest reply on Nov 26, 2007 7:11 PM by David Radunz

    selectedChild not working

    David Radunz Newbie

      Hey All,

      I have tried various methods and cannot seem to get "selectedChild" working. I have set it to the same value as I have for the "name" of the rich:panelMenuGroup and also tried to set it to the value for the name set to the rich:panelMenuItem and no success. Below is a static example I am trying, but im sure you can imply from the below code what my actual working mechanics will be.

       <rich:panelMenu style="width:200px"
       iconExpandedGroup="disc" iconCollapsedGroup="disc"
       iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right"
       iconCollapsedTopGroup="chevronDown" iconCollapsedTopPosition="right"
       selectedChild="manage_agent">
      
       <rich:panelMenuGroup label="Manage Agent" name="manage_agent">
       <rich:panelMenuItem
       label="Register Agent"
       name="register_agent"
       action="#{menu.changeView}">
       <f:param name="view" value="register_agent"/>
       </rich:panelMenuItem>
      
       <rich:panelMenuItem
       label="View Agent"
       name="view_agent"
       action="#{menu.changeView}">
       <f:param name="view" value="view_agent"/>
       </rich:panelMenuItem>
      
       <rich:panelMenuItem
       label="Change PIN"
       name="change_pin"
       action="#{menu.changeView}">
       <f:param name="view" value="change_pin"/>
       </rich:panelMenuItem>
       </rich:panelMenuGroup>
      
       <rich:panelMenuGroup label="Cash Operations">
       <rich:panelMenuItem
       label="Cash In"
       name="cash_in"
       action="#{menu.changeView}">
       <f:param name="view" value="cash_in"/>
       </rich:panelMenuItem>
      
       <rich:panelMenuItem
       label="Cash Out"
       name="cash_out"
       action="#{menu.changeView}">
       <f:param name="view" value="cash_out"/>
       </rich:panelMenuItem>
      
       </rich:panelMenuGroup>
      
       <rich:panelMenuGroup label="Reports">
       <rich:panelMenuItem label="Transaction Report">
      
       </rich:panelMenuItem>
       </rich:panelMenuGroup>
      
       </rich:panelMenu>
      


      Cheers,

      David