6 Replies Latest reply on Apr 10, 2008 1:08 PM by Frederic Guillermin

    Styleclass behaviour change with RF 3.2.0 on dropDownMenu

    Frederic Guillermin Newbie

      We are using RF 3.1.4 and I want to validate 3.2.0 for many reasons (upload, sortable columns, ...).
      We found a problem with styleClass on dropDownMenu.
      The background image used in StyleClass of dropDownMenu is also used on MenuItem with 3.2.0.

      3.1.4 :
      http://img519.imageshack.us/my.php?image=rf314xu2.gif

      3.2.0 :
      http://img254.imageshack.us/my.php?image=rf32li5.gif


      Here the code to reproduce :

      <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
       pageEncoding="ISO-8859-1"%>
      <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
      <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
      <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
      <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
      <!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">
      <head>
      <style>
      .LeftCls {
       background-image: url(/jsfRichFaces/images/fond.gif);
      }
      </style>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
      <title>My Page</title>
      </head>
      <body>
      
      <f:view>
       <h:form id="frm">
       <h:panelGrid id="pg1">
       <rich:dropDownMenu id="dd1" styleClass="LeftCls" value="Menu 1" direction="bottom-right" jointPoint="tr">
       <rich:menuItem id="it1" value="Item 1" />
       <rich:menuItem id="it2" value="Item 2" />
       <rich:menuItem id="it3" value="Item 3" />
       <rich:menuItem id="it4" value="Item 4" />
       <rich:menuItem id="it5" value="Item 5" />
       <rich:menuGroup id="it6" value="Item 6">
       <rich:menuItem id="id61" value="Item 6.1" />
       </rich:menuGroup>
       <rich:menuItem id="it7" value="Item 7" />
       </rich:dropDownMenu>
       </h:panelGrid>
       </h:form>
      </f:view>
      </body>
      </html>
      


      Please, Any idea ?