1 Reply Latest reply on Sep 10, 2008 2:15 AM by Daniel Bernstein

    panelMenuItem action works only for first item in the list

    Daniel Bernstein Newbie
      I'm experiencing some strange behavior with the <rich:panelMenuItem>.  The page referred to in action works correctly but only for the first menuItem.  Otherwise, the page is posted, but nothing happens.  Here's my code.


      <rich:panelMenu styleClass="actions" mode="server">
           <rich:panelMenuItem action="/partner/test/add.xhtml">
                Add Test
              </rich:panelMenuItem>

           <rich:panelMenuItem action="/partner/home.xhtml">
               Partner Home
              </rich:panelMenuItem> 
      </rich:panelMenu>


      When I click on "Add Test" I am taken to the specified link.
      However Partner Home doesn't work.

      However if I switch positions of the items like this,

      <rich:panelMenu styleClass="actions" mode="server">
           <rich:panelMenuItem action="/partner/home.xhtml">
               Partner Home
              </rich:panelMenuItem> 

           <rich:panelMenuItem action="/partner/test/add.xhtml">
                Add Test
              </rich:panelMenuItem>
      </rich:panelMenu>

      "Partner Home" menu item takes me to the correct page but clicking "Add Test" keeps me on the same page.