0 Replies Latest reply on Mar 3, 2008 8:16 AM by Louis Weideman

    Help needed with DropDownMenu

    Louis Weideman Newbie

      I have a minor problem with a DropDownMenu which works but doesn't display properly. Two problems occur:

      1. When I add items to the DropDownMenu it pushes all other components down to make space for these items instead of just adding it to the menu-list.

      2. When the mouse is placed over the DropDownMenu it brings up what seems like a textbox along side the menu-list.

      I have looked for examples on the net but everything I've tried so far does the thing.

      Here is some test code I am using:

      <?xml version="1.0" encoding="ISO-8859-1" ?>
      <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
       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" version="2.0">
       <jsp:directive.page language="java"
       contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" />
       <jsp:text>
       <![CDATA[ <?xml version="1.0" encoding="ISO-8859-1" ?> ]]>
       </jsp:text>
       <jsp:text>
       <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ]]>
       </jsp:text>
       <html xmlns="http://www.w3.org/1999/xhtml">
       <head>
       <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
       <title>Insert title here</title>
       </head>
       <body>
       <f:view>
       <h:form>
      
       <rich:panel>
       <rich:dropDownMenu value="Test">
       <rich:menuItem value="test1"></rich:menuItem>
       <rich:menuItem value="test2"></rich:menuItem>
       <rich:menuItem value="test3"></rich:menuItem>
       </rich:dropDownMenu>
       </rich:panel>
       <h:outputLabel value="Test"/>
       </h:form>
       </f:view>
       </body>
       </html>
      </jsp:root>