1 Reply Latest reply on Jun 5, 2008 5:53 PM by Sergey Smirnov

    Problem rendering menuItem in 3.2.1.GA

    Sergio Del Valle Newbie

      I just upgraded to 3.2.1 GA and there's a problem with the rendering of the menuItem, my page is really simple

      <?xml version="1.0" encoding="UTF-8"?>
      <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich">
       <head>
       <ui:insert name="headers">Headers</ui:insert>
       </head>
       <body>
       <f:view>
       <rich:panel id="container">
       <rich:panel id="header">
       <h:form id="headerForm">
       <rich:toolBar>
       <rich:dropDownMenu>
       <f:facet name="label">
       <h:outputText value="Archivo"/>
       </f:facet>
       <rich:menuItem action="#{ddMenu.logout}" submitMode="ajax"
       value="Salir"/>
       </rich:dropDownMenu>
       <rich:dropDownMenu>
       <f:facet name="label">
       <h:outputText value="Planillas"/>
       </f:facet>
       <rich:menuItem action="#{ddMenu.doRegistrarPlanilla}"
       submitMode="ajax" value="Registar"/>
       </rich:dropDownMenu>
       </rich:toolBar>
       </h:form>
       </rich:panel>
       <a4j:include id="main" layout="block" viewId="#{mainPanel.view}"/>
       </rich:panel>
       </f:view>
       </body>
      </html>


      When I try it Firefox shows me a page informing the xml is malformed. If I look at the source code generated there is a property for a div element that says

      onmouseover="if (RichFaces.Menu.isWithin(event, this)) return; this.className='dr-menu-item dr-menu-item-hover rich-menu-item rich-menu-item-hover ';; $('headerForm:j_id11').style.cssText='; ; ;'; $('headerForm:j_id11:icon').className='dr-menu-icon dr-menu-icon-selected rich-menu-item-icon rich-me?u-item-icon-selected '


      Note the ? in rich-me?u-item-icon-selected, if I copy and paste it on a text editor with UTF-8 encoding set it appears as a square, if I change the econding to ANSI it is shown as �. Guess this is a bug and will return to 3.2.0.SR1 until you have it solved.