8 Replies Latest reply on May 13, 2010 8:32 AM by pankajjain_1510

    problem with richfaces

    pankajjain_1510

      i have written following drop down menu....

      in action attribute i have written a value which is in faces-config.xml under <from-outcome> tag

       

       

      <rich:menuGroup value="Inventory Maintainces">
                              <rich:menuItem submitMode="ajax" value="Finished Item"
                                  action="finisheditem" />
                              <rich:menuItem submitMode="ajax" value="Labor code and charges "
                                  action="labor_code_charges">
                              </rich:menuItem>
                              <rich:menuItem submitMode="ajax" value="Metal code and prices"
                                  action="metal_code_prices">
                              </rich:menuItem>
                            
                    </rich:menuGroup>

       

      Above code is written in menu.jsp and included using <jsp:include> tag in other jsp.

      when application is loaded for the first time and i select one of item from menu , it works properly . Say i select finished item then window of finished item appeares but on the same page when i select "labor code and charges" or "metal code and prices" it will not show any output for respective menu item

       

      Please help me out ,

        • 1. Re: problem with rich:menuitem
          ilya_shaikovsky
          • 2. Re: problem with rich:menuitem
            pankajjain_1510

            thanks for your response, but i am very much new to jsf,richfaces and also to ajax. please help me how can i achieve it . i read that link but i am not able to track answer ....

            • 3. Re: problem with rich:menuitem
              ilya_shaikovsky

              switch menu and items to server mode.

              • 4. Re: problem with rich:menuitem
                pankajjain_1510

                i did it but till it is not working i dnt know what is gng wrong. atleast provide me some steps to achive it

                • 5. Re: problem with rich:menuitem
                  pankajjain_1510

                  please do reply dear. It would help me lot ......

                  • 6. Re: problem with rich:menuitem
                    ilya_shaikovsky

                    define submitMode="server" at items which performs navigation.

                    • 7. Re: problem with rich:menuitem
                      pankajjain_1510

                      i did the same thing. Following is the code

                       

                      <rich:dropDownMenu submitMode="server">
                                          <f:facet name="label">
                                              <h:panelGroup>
                                                  <h:outputText value="Inventory Control" />
                                              </h:panelGroup>
                                          </f:facet>
                                          <rich:menuGroup value="Inventory Maintainces"  >
                                              <rich:menuItem submitMode="Server" value="Finished Item"
                                                  action="finisheditem" />
                                              <rich:menuItem submitMode="Server" value="Labor code and charges "
                                                  action="labor_code_charges" >
                                              </rich:menuItem>
                                              <rich:menuItem submitMode="server" value="Metal code and prices"
                                                  action="metal_code_prices">
                                              </rich:menuItem>
                                              <rich:menuItem submitMode="server" value="Diamond codes and prices"
                                                  action="diamond_code_prices">
                                              </rich:menuItem>
                                              <rich:menuItem submitMode="server" value="Color stones codes and prices"
                                                  action="color_stone_code_prices">
                                              </rich:menuItem>
                                              <rich:menuItem submitMode="server" value="Watch inventory"
                                                  action="watch_inventory">
                                              </rich:menuItem>
                                                     
                                              <rich:menuItem submitMode="server" value="Raw Material Inventory "
                                                  action="samepage">
                                              </rich:menuItem>
                                          </rich:menuGroup>

                       

                                         
                                         
                                      </rich:dropDownMenu>

                      • 8. Re: problem with rich:menuitem
                        pankajjain_1510

                        hey please help me yr , or atleast give me code which worked for you for demo purpose....