9 Replies Latest reply on Sep 25, 2007 1:53 AM by baz

    DropDownMenu + Opera9.10 does not work

    baz

      Hello,
      [searching the forum and googling has not revealed any results.]

      We are having some problems with drop down menu component.
      It works in IE and in Firefox. But within Opera it does nothing.
      Can this be confirmed?
      Environment:
      Richfaces 3.1.0GA
      Seam2.0.0Beta1
      Jboss4.2.1GA
      in a project generated with semgen

      Ciao,
      Carsten

        • 1. Re: DropDownMenu + Opera9.10 does not work
          ilya_shaikovsky

          Right now I'm just opened livedemo.exadel.com/richfaces-demo in my Opera browser :) Works as expected.

          The only difference - my Opera version is 9.22

          • 2. Re: DropDownMenu + Opera9.10 does not work
            baz

            So i investigated further. Result:
            when using submitMode="ajax", as in the demo, the menu works in opera

            without submitMode the menu only works in IE and firefox.

            Ciao,
            Carsten
            BTW: my Opera version is now 9.23

            • 3. Re: DropDownMenu + Opera9.10 does not work
              ilya_shaikovsky

              just checked using

               <h:form>
               <rich:dropDownMenu value="menu" >
               <rich:menuItem value="Item 3" action="#{bean.action}"></rich:menuItem>
               </rich:dropDownMenu>
               <a4j:log></a4j:log>
               </h:form>
              


              Action called successfully.

              • 4. Re: DropDownMenu + Opera9.10 does not work
                baz

                That is interesting
                Perhaps this can narrow down our problem:

                <rich:toolBar>
                 <h:form>
                 <rich:toolBarGroup location="">
                 <rich:dropDownMenu value="Seed Multiplication">
                 <rich:menuItem submitMode="ajax" value="View fieldplans" action="/fieldplan/html/ViewFieldplan.xhtml" />
                 </rich:dropDownMenu>
                 <rich:dropDownMenu value="Field Evaluation">
                 <rich:menuItem value="View fieldplans" action="/fieldplan/html/ViewFieldplan.xhtml" />
                 </rich:dropDownMenu>
                 </rich:toolBarGroup>
                 </h:form>
                 <rich:toolBarGroup location="right">
                 <h:form>
                [...]
                 </h:form>
                 </rich:toolBarGroup>
                 </rich:toolBar>
                
                

                With this structure only the item with submitMode=Ajax work in Opera.
                In IE and Firefox both items work.
                This is the same case on all our computers.
                Ciao,
                Carsten

                • 5. Re: DropDownMenu + Opera9.10 does not work
                  ilya_shaikovsky

                  I think you need to read about JSF navigation, if you mean the navigation, placing such strings in action attributes.

                  • 6. Re: DropDownMenu + Opera9.10 does not work
                    baz

                    Sorry, i forgot to mentioned that my project uses seam. And with that setuop i can place page adresses in links. This works perfectly.

                    But surely it could be factored out into JBPM or *.pages.xml or something like that.

                    • 7. Re: DropDownMenu + Opera9.10 does not work
                      baz

                      The dropDown Menu does not work in Opera (9.23) in this constellation

                      <ui:component ...>
                       <rich:toolBar>
                       <h:form>
                       <rich:toolBarGroup >
                      
                       <rich:dropDownMenu value="Collection" >
                       <rich:menuItem value="List " action="list" />
                       </rich:dropDownMenu>
                      
                       </rich:toolBarGroup>
                       </h:form>
                       <rich:toolBarGroup location="right">
                       <h:form>
                       [...]
                       </h:form>
                       </rich:toolBarGroup>
                       </rich:toolBar>
                      </ui:component>
                      

                      But if you do it this way round
                      <ui:component ...>
                       <rich:toolBar>
                       <rich:toolBarGroup >
                       <h:form>
                      
                       <rich:dropDownMenu value="Collection" >
                       <rich:menuItem value="List " action="list" />
                       </rich:dropDownMenu>
                       </h:form>
                       </rich:toolBarGroup>
                       <rich:toolBarGroup location="right">
                       <h:form>
                       [...]
                       </h:form>
                       </rich:toolBarGroup>
                       </rich:toolBar>
                      </ui:component>
                      

                      the menu links work, but the menu is rendered vertically:-(
                      Also, you can put the form around the whole toolbar and it works with opera. But in our case we need the two forms:-(
                      So the only workaround is to use submitMode="ajax"
                      There is now an issue for this:
                      http://jira.jboss.com/jira/browse/RF-970


                      • 8. Re: DropDownMenu + Opera9.10 does not work
                        sergeyhalipov

                        Your code is incorrect. Toolbar group must be a direct child of toolbar component. You can put the form around the whole toolbar or put the form inside each toolBarGroup.

                        • 9. Re: DropDownMenu + Opera9.10 does not work
                          baz

                          Hello,
                          thanks for the response.

                          For a working solution we can put each DDmenu in a separate form, or put all DDmenus in a panelgrid (so that they are aligned horizontally) and embed the grid into a form.

                          Just for information: Why does it work with firefox and IE?

                          Ciao,
                          Carsten