8 Replies Latest reply on Oct 7, 2008 2:33 PM by desilentio

    dropDownMenu in Firefox 2

    desilentio

      I'm having trouble with the dropDownMenu component in FF2 using

      JSF Sun RI 1.2
      Facelets
      RichFaces 3.2.2 (and 3.2.1)

      I have a layout something like:

      <?xml version="1.0" encoding="UTF-8" ?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:c="http://java.sun.com/jstl/core"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich"
      >
       <head>
       <style type = "text/css">
       body {
       background-color: #6B5C5C;
       }
       </style>
       <title><ui:insert name = "pageTitle">Default Title</ui:insert></title>
       </head>
      
       <body>
       <ui:insert name = "header">
       <ui:include src = "header.xhtml"/>
       </ui:insert>
      
       <ui:insert name = "mainMenu">
       <ui:include src = "main-menu.xhtml"/>
       </ui:insert>
      
       <ui:insert name = "main">
       <ui:include src = "main.xhtml"/>
       </ui:insert>
      
       <ui:insert name = "mainFooter">
       <ui:include src = "main-footer.xhtml"/>
       </ui:insert>
       </body>
      </html>
      


      In the main-menu file I have:
      <?xml version="1.0" encoding="UTF-8" ?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns = "http://www.w3.org/1999/xhtml"
       xmlns:f = "http://java.sun.com/jsf/core"
       xmlns:h = "http://java.sun.com/jsf/html"
       xmlns:c = "http://java.sun.com/jstl/core"
       xmlns:ui = "http://java.sun.com/jsf/facelets"
       xmlns:a4j = "http://richfaces.org/a4j"
       xmlns:rich = "http://richfaces.org/rich"
      >
      <ui:composition>
      
       <h:form>
      
       <rich:dropDownMenu id = "test" >
       <f:facet name = "label">
       <h:outputText value = "drop down"/>
       </f:facet>
       <rich:menuItem value = "am i here"/>
       </rich:dropDownMenu>
       </h:form>
      
      </ui:composition>
      </html>
      


      The text of the dropDownMenu appears but nothing will drop down when the page first loads. However if I manually reload the page then everything works fine. I've tried using an a4j:form with ajaxRendered = "true" or adding an a4j:outputPanel but neither solves the problem. The above code does work in FF3 however.

      Any help is appreciated.