5 Replies Latest reply on Aug 12, 2009 4:44 AM by Ilya Shaikovsky

    panelMenuGroup and panelMenuItemaction dont work

    Manu Osten Apprentice

      Hi,

      using Framework:
      -- richfaces 3.3.1
      -- facelets
      -- seam 2.0
      -- jboss 4.2.2
      -- jsf

      I want to call the action at panelMenuGroup and panelMenuItem, but it dont be working. I dont know why.

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich">
      
      
       <style>
       .cols{
       vertical-align:top;
       width:50%;
       }
       </style>
       <h:form id="form">
       <h:panelGrid columns="1" columnClasses="cols" width="100%">
       <rich:panelMenu style="width:200px" mode="ajax"
       iconExpandedGroup="disc" iconCollapsedGroup="disc"
       iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right"
       iconCollapsedTopGroup="chevronDown">
       <rich:panelMenuGroup label="Group 1" action="/birtview.xhtml">
       <rich:panelMenuItem label="login" action="/login.xhtml">
       </rich:panelMenuItem>
       <rich:panelMenuItem label="Item 1.2" action="#{test.loginction}">
       </rich:panelMenuItem>
       <rich:panelMenuItem label="Item 1.3" action="#{test.loginction}">
       </rich:panelMenuItem>
       </rich:panelMenuGroup>
       <rich:panelMenuGroup label="Group 2">
       <rich:panelMenuItem label="Item 2.1" action="#{test.homeaction}">
       </rich:panelMenuItem>
       <rich:panelMenuItem label="Item 2.2" action="#{test.loginction}">
       </rich:panelMenuItem>
       <rich:panelMenuItem label="Item 2.3" action="#{test.homeaction}">
       </rich:panelMenuItem>
       <rich:panelMenuGroup label="Group 2.4">
       <rich:panelMenuItem label="Item 2.4.1" action="#{test.loginction}">
       </rich:panelMenuItem>
       <rich:panelMenuItem label="Item 2.4.2" action="#{test.homeaction}">
       </rich:panelMenuItem>
       <rich:panelMenuItem label="Item 2.4.3" action="#{test.loginction}">
       </rich:panelMenuItem>
       </rich:panelMenuGroup>
       <rich:panelMenuItem label="Item 2.5" action="#{test.loginction}">
       </rich:panelMenuItem>
       </rich:panelMenuGroup>
       <rich:panelMenuGroup label="Group 3">
       <rich:panelMenuItem label="Item 3.1" action="#{test.homeaction}">
       </rich:panelMenuItem>
       <rich:panelMenuItem label="Item 3.2" action="#{test.loginction}">
       </rich:panelMenuItem>
       <rich:panelMenuItem label="Item 3.3" action="#{test.homeaction}">
       </rich:panelMenuItem>
       </rich:panelMenuGroup>
       </rich:panelMenu>
       </h:panelGrid>
       </h:form>
      </ui:composition>
      


        • 1. Re: panelMenuGroup and panelMenuItemaction dont work
          Ilya Shaikovsky Master

          method not executed? check phaseTracker output.

          b.t.w. action="/birtview.xhtml" such navigation supported only via nested s:links.

          • 2. Re: panelMenuGroup and panelMenuItemaction dont work
            Manu Osten Apprentice

            yes, method are not excuted. I tried with simple method and system.output. If I am using another component for example h:commandButton, then the method can be executed.

            phaseTracker:


            15:36:21,576 ERROR [STDERR] 11.08.2009 15:36:21 org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RESTORE_VIEW 1
            15:36:21,580 ERROR [STDERR] 11.08.2009 15:36:21 org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RESTORE_VIEW 1
            15:36:21,587 ERROR [STDERR] 11.08.2009 15:36:21 org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE APPLY_REQUEST_VALUES 2
            15:36:21,590 ERROR [STDERR] 11.08.2009 15:36:21 org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER APPLY_REQUEST_VALUES 2
            15:36:21,591 ERROR [STDERR] 11.08.2009 15:36:21 org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE PROCESS_VALIDATIONS 3
            15:36:21,593 ERROR [STDERR] 11.08.2009 15:36:21 org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER PROCESS_VALIDATIONS 3
            15:36:21,594 ERROR [STDERR] 11.08.2009 15:36:21 org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE UPDATE_MODEL_VALUES 4
            15:36:21,596 ERROR [STDERR] 11.08.2009 15:36:21 org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER UPDATE_MODEL_VALUES 4
            15:36:21,596 ERROR [STDERR] 11.08.2009 15:36:21 org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE INVOKE_APPLICATION 5
            15:36:21,597 ERROR [STDERR] 11.08.2009 15:36:21 org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER INVOKE_APPLICATION 5
            15:36:21,600 ERROR [STDERR] 11.08.2009 15:36:21 org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RENDER_RESPONSE 6
            15:36:21,608 ERROR [STDERR] 11.08.2009 15:36:21 org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RENDER_RESPONSE 6


            ok with action="/birtview.xhtml". How will the component panelMenuGroup work with s:links? It is no problem with panelMenuItem and s:links


            • 3. Re: panelMenuGroup and panelMenuItemaction dont work
              Ilya Shaikovsky Master

               


              ok with action="/birtview.xhtml". How will the component panelMenuGroup work with s:links? It is no problem with panelMenuItem and s:links


              just define submit mode = none at links and place s:links inside where needed.

              The first one should be investigated additionally.. I can't get such behaviour working on rf-demo 3.3.2 snapshot

              • 4. Re: panelMenuGroup and panelMenuItemaction dont work
                Manu Osten Apprentice

                panelMenuGroup dont have the element "submit". Only panelMenuItem. So I cannot combine s:link and panelMenuGroup.

                Now I found out the problem with executed Methode. In Seam project ear has old richfaces-lib and I replaced it with richfaces 3.3.1. fuck....

                • 5. Re: panelMenuGroup and panelMenuItemaction dont work
                  Ilya Shaikovsky Master

                   

                  panelMenuGroup dont have the element "submit". Only panelMenuItem. So I cannot combine s:link and panelMenuGroup.


                  so I'm telling about submitMode defined at Item and s:link defined as child of this item. in this case - default menuItem submit functionality will be disabled and s:link will do the work.