2 Replies Latest reply on Mar 3, 2009 5:03 AM by cdanielw

    Context menu problems with Chrome and Safari 4 beta

    cdanielw Newbie

      I have trouble getting the contextMenu component working in Chrome and Safari 4 beta. Everything works fine in the RichFaces online demo. When testing it myself however, I fail to get even the simplest tests working.

      Here is the view, which work fine in IE 6 and Firefox 3:

      <!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:rich="http://richfaces.org/rich"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:h="http://java.sun.com/jsf/html">
       <head>
       <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8"/>
       <title>Context menu test</title>
       </head>
       <body>
       <h:form>
       <h:panelGroup id="panelGroup">
       Right-click me!
       <rich:contextMenu event="oncontextmenu" attachTo="panelGroup" submitMode="none">
       <rich:menuItem id="aMenuItem" value="A menu item" onclick="alert('Menu item selected');"/>
       </rich:contextMenu>
       </h:panelGroup>
       </h:form>
       </body>
      </html>


      In Chrome and Safari 4 beta, an error is printed on the page:


      This page contains the following errors:
      error on line 12 at column 12: Input is not proper UTF-8, indicate encoding !
      Bytes: 0x00 0x75 0x2D 0x69
      Below is a rendering of the page up to the first error.



      It is deployed on Tomcat 5.5.26 with RichFaces 3.3.0.GA, Facelets 1.1.14 and JSF RI 1.2_08.

      What am I missing?