1 Reply Latest reply on Apr 7, 2010 4:18 AM by Ilya Shaikovsky

    Action on DropDownMenu and MenuGroup

    Rand Asin Novice

      Is it possible to invoke action method on DropDownMenu and MenuGroup?  Looks like these tags don't have action attribute.


      For example I have component hierarchy like this


      • DropDownMenu1
        • MenuItem1
        • MenuItem2
        • MenuGroup1
          • MenuItem3


      When user mouseover DropDownMenu1, the menu pops up, but User can still click DropDownMenu1 and be taken to another page.  Same goes for MenuGroup1.

        • 1. Re: Action on DropDownMenu and MenuGroup
          Ilya Shaikovsky Master

          issues sounds reasonable. https://jira.jboss.org/jira/browse/RF-8579


          I have workaround to propose to you for drop down menu


          <f:facet name="label"> 
          <a4j:outputPanel onclick="document.location.href='#{facesContext.externalContext.requestContextPath}/welcome.jsf'">
          <h:graphicImage value="/images/icons/copy.gif" styleClass="pic"/>
          <h:outputText value="File"/>


          I agree that not looks really good, but at least works. And unfortunatelly menuGroup can't be changed in the same way. So you could patch the component on your own or pospone that till rfc completion if possible

          1 of 1 people found this helpful