14 Replies Latest reply on Nov 18, 2008 1:07 PM by E Aish

    Rich:menuitem with action attibute is not fired under 3.1.6

    E Aish Novice

      Hi,

      The following menu item worked fine under Richfaces 3.1.3.

      <rich:dropDownMenu value="Tables">
      <rich:menuItem value="Table1" action="#{UINavigation.doSummary}" id="dropdownmenu_mItem5" />
      <rich:menuItem value="Table2" action="#{UINavigation.doInfo}" id="dropdownmenu_menuItem6" />
      <rich:menuItem value="Table3" action="#{UINavigation.doTable3}" id="dropdownmenu_menuItem7" />
      </rich:dropDownMenu>

      When menu item is selected,the action method was fired perfectly fine.

      But when I upgraded to Richfaces 3.1.6, the action method is not triggered. I even tried adding submitMode = "server" and it didn't work. (Even though the default submit mode is server). Can you please help me understand why the action method is not fired when I select a menu item? Is anything special need to added for the 3.1.6 version?

      Thanks
      Aish

        • 1. Re: Rich:menuitem with action attibute is not fired under 3.
          Ilya Shaikovsky Master

          should be no difference. PLease add phaseTracker to your application and paste its output.

          • 2. Re: Rich:menuitem with action attibute is not fired under 3.
            E Aish Novice

            Hi Ilya,

            Thanks for responding.

            As sugggested by you, I added PhaseTracker and its output is given below. After adding PhaseTracker, I selected the different menuitems and their responses are shown below. The command attribute is not fired.

            Please let me know what I should do? Can you please help me fix this?

            (The " urllink /intro.jsp" in the output below is my debugging message added in the program. Please ignore it)

            Thanks
            Aish
            ======

            Nov 12, 2008 11:39:00 AM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RESTORE_VIEW 1
            Nov 12, 2008 11:39:00 AM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RESTORE_VIEW 1
            Nov 12, 2008 11:39:00 AM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RENDER_RESPONSE 6
            urllink /intro.jsp
            Nov 12, 2008 11:39:11 AM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RENDER_RESPONSE 6
            Nov 12, 2008 11:39:11 AM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RESTORE_VIEW 1
            Nov 12, 2008 11:39:11 AM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RESTORE_VIEW 1
            Nov 12, 2008 11:39:11 AM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RENDER_RESPONSE 6
            Nov 12, 2008 11:39:11 AM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RENDER_RESPONSE 6
            Nov 12, 2008 11:39:11 AM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RESTORE_VIEW 1
            Nov 12, 2008 11:39:11 AM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RESTORE_VIEW 1
            Nov 12, 2008 11:39:11 AM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RENDER_RESPONSE 6
            Nov 12, 2008 11:39:11 AM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RENDER_RESPONSE 6
            Nov 12, 2008 11:39:11 AM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RESTORE_VIEW 1
            Nov 12, 2008 11:39:11 AM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RESTORE_VIEW 1
            Nov 12, 2008 11:39:11 AM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RENDER_RESPONSE 6
            Nov 12, 2008 11:39:11 AM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RENDER_RESPONSE 6
            Nov 12, 2008 11:39:12 AM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RESTORE_VIEW 1
            Nov 12, 2008 11:39:12 AM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RESTORE_VIEW 1
            Nov 12, 2008 11:39:12 AM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RENDER_RESPONSE 6
            Nov 12, 2008 11:39:12 AM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RENDER_RESPONSE 6
            urllink /intro.jsp
            Nov 12, 2008 11:41:06 AM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RESTORE_VIEW 1
            Nov 12, 2008 11:41:06 AM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RESTORE_VIEW 1
            Nov 12, 2008 11:41:06 AM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RENDER_RESPONSE 6
            Nov 12, 2008 11:41:08 AM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RENDER_RESPONSE 6
            Nov 12, 2008 11:42:10 AM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RESTORE_VIEW 1
            Nov 12, 2008 11:42:10 AM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RESTORE_VIEW 1
            Nov 12, 2008 11:42:10 AM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RENDER_RESPONSE 6
            urllink /intro.jsp
            Nov 12, 2008 11:42:12 AM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RENDER_RESPONSE 6
            Nov 12, 2008 11:42:54 AM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RESTORE_VIEW 1
            Nov 12, 2008 11:42:54 AM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RESTORE_VIEW 1
            Nov 12, 2008 11:42:54 AM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RENDER_RESPONSE 6
            Nov 12, 2008 11:42:55 AM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RENDER_RESPONSE 6
            urllink /intro.jsp
            Nov 12, 2008 11:43:34 AM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RESTORE_VIEW 1
            Nov 12, 2008 11:43:34 AM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RESTORE_VIEW 1
            Nov 12, 2008 11:43:34 AM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RENDER_RESPONSE 6
            urllink /intro.jsp
            Nov 12, 2008 11:43:34 AM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RENDER_RESPONSE 6

            • 3. Re: Rich:menuitem with action attibute is not fired under 3.
              E Aish Novice

              Hi Ilya,

              I ran the same application under RichFaces 3.1.3 and used PhaseTracker to log the output. Please see below for the PhaseTracker output. I could see all the JSF phases being called where as in my previous post (with the output of application running under 3.1.6) only 2 JSF phases are called. It is the same program running on the same server except for RichFaces version 3.1.3 and 3.1.6

              Please advise

              Thanks
              Aish

              ====
              Nov 12, 2008 12:05:34 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE RESTORE_VIEW 1
              Nov 12, 2008 12:05:34 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER RESTORE_VIEW 1
              Nov 12, 2008 12:05:34 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE RENDER_RESPONSE 6
              Nov 12, 2008 12:05:45 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER RENDER_RESPONSE 6
              Nov 12, 2008 12:05:46 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE RESTORE_VIEW 1
              Nov 12, 2008 12:05:46 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER RESTORE_VIEW 1
              Nov 12, 2008 12:05:46 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE RENDER_RESPONSE 6
              Nov 12, 2008 12:05:46 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER RENDER_RESPONSE 6
              Nov 12, 2008 12:05:46 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE RESTORE_VIEW 1
              Nov 12, 2008 12:05:46 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER RESTORE_VIEW 1
              Nov 12, 2008 12:05:46 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE RENDER_RESPONSE 6
              Nov 12, 2008 12:05:46 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER RENDER_RESPONSE 6
              Nov 12, 2008 12:05:46 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE RESTORE_VIEW 1
              Nov 12, 2008 12:05:46 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER RESTORE_VIEW 1
              Nov 12, 2008 12:05:46 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE RENDER_RESPONSE 6
              Nov 12, 2008 12:05:46 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER RENDER_RESPONSE 6
              Nov 12, 2008 12:05:46 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE RESTORE_VIEW 1
              Nov 12, 2008 12:05:46 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER RESTORE_VIEW 1
              Nov 12, 2008 12:05:46 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE RENDER_RESPONSE 6
              Nov 12, 2008 12:05:46 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER RENDER_RESPONSE 6
              Nov 12, 2008 12:05:52 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE RESTORE_VIEW 1
              Nov 12, 2008 12:05:52 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER RESTORE_VIEW 1
              Nov 12, 2008 12:05:52 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE APPLY_REQUEST_VALUES 2
              Nov 12, 2008 12:05:52 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER APPLY_REQUEST_VALUES 2
              Nov 12, 2008 12:05:52 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE PROCESS_VALIDATIONS 3
              Nov 12, 2008 12:05:52 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER PROCESS_VALIDATIONS 3
              Nov 12, 2008 12:05:52 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE UPDATE_MODEL_VALUES 4
              Nov 12, 2008 12:05:52 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER UPDATE_MODEL_VALUES 4
              Nov 12, 2008 12:05:52 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE INVOKE_APPLICATION 5
              Nov 12, 2008 12:05:52 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER INVOKE_APPLICATION 5
              Nov 12, 2008 12:05:52 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE RENDER_RESPONSE 6
              Nov 12, 2008 12:05:56 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER RENDER_RESPONSE 6
              Nov 12, 2008 12:06:02 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE RESTORE_VIEW 1
              Nov 12, 2008 12:06:02 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER RESTORE_VIEW 1
              Nov 12, 2008 12:06:02 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE APPLY_REQUEST_VALUES 2
              Nov 12, 2008 12:06:02 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER APPLY_REQUEST_VALUES 2
              Nov 12, 2008 12:06:02 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE PROCESS_VALIDATIONS 3
              Nov 12, 2008 12:06:02 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER PROCESS_VALIDATIONS 3
              Nov 12, 2008 12:06:02 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE UPDATE_MODEL_VALUES 4
              Nov 12, 2008 12:06:02 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER UPDATE_MODEL_VALUES 4
              Nov 12, 2008 12:06:02 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE INVOKE_APPLICATION 5
              Nov 12, 2008 12:06:02 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER INVOKE_APPLICATION 5
              Nov 12, 2008 12:06:02 PM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE RENDER_RESPONSE 6
              Nov 12, 2008 12:06:05 PM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER RENDER_RESPONSE 6

              • 4. Re: Rich:menuitem with action attibute is not fired under 3.
                Aleksandr Dubovsky Newbie

                Hi Aish,
                Thanks for your post.

                I verified your scenario, and all look fine. I check the action calling on following environment:
                jsf 1.2, sunRI, RF-3.1.3.GA and RF-3.1.6.GA under tomcat.

                All six jsf actions are called and all menuItem actions are performed in both versions of richfaces (and with different submitModes).

                Could you please explain your environment with more details and give simple war if it is possible.

                • 5. Re: Rich:menuitem with action attibute is not fired under 3.
                  E Aish Novice

                  Hi Adubovsky,

                  Thanks for responding.

                  My environment is

                  IBM RAd 7.0 (Which supports JSF 1.1)
                  Oracle Database
                  RichFaces 3.1.3 (now I am trying to upgrade to 3.1.6 and thats when I getting trouble with the action method firing)
                  Weblogic 9.2

                  RichFaces 3.1.3 works fine with the above environment. Please let me know if any additional information you need. I could send the war file to you but since it accesses the database, It would not work without database setup. Do you want to me create a sample application and send a war file? If so, please send me a mail id so that I can send the war file as I could not attach the war file in this forum.

                  Can you please help me get this action method working? I have to trunaround this application to production and I could not do it with out fixing this?

                  Thanks
                  Aish

                  • 6. Re: Rich:menuitem with action attibute is not fired under 3.
                    Ilya Shaikovsky Master

                    guys will try this at your environment.. but if you able to create sample war in a short time you could freely send to any our emails (take from our profile)

                    • 7. Re: Rich:menuitem with action attibute is not fired under 3.
                      E Aish Novice

                      Hi Ilya,

                      As suggested by you, I sent a sample war file to the following email ids

                      1. adubovsky@exadel.com
                      2. ishaikovsky@exadel.com

                      But, both the emails were returned back to me due to delivery error. Can you please let me know the emails ids so that I can resend them again?

                      Thanks Aish

                      • 8. Re: Rich:menuitem with action attibute is not fired under 3.
                        Aleksandr Dubovsky Newbie

                        Hi Aish,

                        Try to add password to the archive and send again.

                        • 9. Re: Rich:menuitem with action attibute is not fired under 3.
                          Ilya Shaikovsky Master

                          strange.. other customers succesfully sends me war files without problems...

                          • 10. Re: Rich:menuitem with action attibute is not fired under 3.
                            E Aish Novice

                            Hi Ilya,adubovsky,

                            Based on your suggestion, I tried to send the war file again and it looks like It went thru fine. The earlier issue with sending should be because of the size of the war file. Now, I made it as simple as possible and reduced the size.

                            Please check your email for the subject "Sample war file as discussed on the forum" for my email. Please let me know if there is any issue with the file or if you need any additional information. I have been checking my forum post very frequently and I will reply as soon as possible.

                            Thanks for your help
                            Aish

                            • 11. Re: Rich:menuitem with action attibute is not fired under 3.
                              Aleksandr Dubovsky Newbie

                              Hi Aish,

                              The problem was resolved by changing jsf version to 1.1_02-b08 (1_1_01 version was in your war).
                              There are many major changes between this two versions of jsf (a lot of critical bugs were fixed).

                              So our suggestion is to change jsf version to 1.1_02.
                              And delete duplicate libs from your classpath.

                              • 12. Re: Rich:menuitem with action attibute is not fired under 3.
                                E Aish Novice

                                Hi adubovsky,

                                I am so happy to see your reply.

                                I tried looking for the two files jsf-api-1.1_02b08.jar and jsf-impl-1.1_02b08.jar (are these two files that I should update? Please correct me if I am wrong).

                                I could not find them on sun website or in other places. Can you please let me know where I can get a copy of these jar files?

                                Should I also update any other files in order for this 1.1_02-b08 to work? Please let me know.

                                I am very happy and eager to try this.

                                Thank you and Ilya very much for your timely response.

                                Thanks
                                Aish

                                • 13. Re: Rich:menuitem with action attibute is not fired under 3.
                                  Aleksandr Dubovsky Newbie

                                  Hi Aish,

                                  I sent required jars on your mail.

                                  • 14. Re: Rich:menuitem with action attibute is not fired under 3.
                                    E Aish Novice

                                    Hi Ilya,adubovsky,

                                    I am so thankful to both of you. I tried the new JSF jar with my sample web application and It worked perfectly fine.

                                    Thank you very much for your extra ordinary support in resolving this.

                                    Thanks and Best Regards
                                    Aish