3 Replies Latest reply on Oct 14, 2009 10:57 AM by ilya_shaikovsky

    rich:contextMenu disabled all <a> links

      hi guys

      I have a project with seam and richfaces.
      I'm trying to use a rich:contextMenu element in my page together with more s:link elements but when I come to this page the s:links aren't working. It works fine without the rich:contextMenu.
      I have also tried to insert a html link just to test the functionality but this isn't working either.

      do you have any ideas or do you know why does this happens?

      thanks in advace

        • 1. Re: rich:contextMenu disabled all <a> links
          ilya_shaikovsky

          RF version? page code?

          • 2. Re: rich:contextMenu disabled all <a> links

            menu look like this

             <rich:menuItem>
             <s:link view="/Tree.xhtml"
             value="Administration"
             id="AdministrationId"
             includePageParams="false"
             propagation="none"/>
            </rich:menuItem>
            .....
            


            and contexmenu like this

            <rich:contextMenu event="onclick" attachTo="node"
            submitMode="server" >
            <rich:menuItem submitMode="server" value="starttask"
             rendered="#{!status.workpersonIsAktiv}"
             action="#{treeHandler.starttask(node.id)}">
            </rich:menuItem>
            <rich:menuItem submitMode="ajax" value="create SubTask"
             action="#{treeHandler.showselectedNode(node.id)}"
             oncomplete="Richfaces.showModalPanel('CrTaskMP');">
             </rich:menuItem>
             <rich:menuItem submitMode="ajax" value="TaskDetails"
             action="#{treeHandler.showselectedNode(node.id)}"
             oncomplete="Richfaces.showModalPanel('TaskDetails');" reRender="TaskDetailsOPanel">
            </rich:menuItem>
            </rich:contextMenu>
            


            seam version is 2.1.2 GA
            and richfaces is included in seam and version 3.2.2

            • 3. Re: rich:contextMenu disabled all <a> links
              ilya_shaikovsky

              1) you need to add submitMode='none' to menuItem which should contains s:link inside working.
              2) as far as I remember there was an issue that menuItem prevented any links inside from working because of events catched and stopped. So please try 3.3.2 GA for test if 1) not helps.