2 Replies Latest reply on Dec 25, 2007 3:36 AM by Sachio Kusumoto

    menuItem problem in contextMenu

    Sachio Kusumoto Newbie

      I used menuItem in contextMenu as follows:

      <rich:column ...>
      <h:outputText value="#{var.value}" />
      <rich:contextMenu >
      <rich:menuItem value="Insert"/>
      <rich:menuItem value="Delete"/>
      </rich:contextMenu>
      </rich:column>
      ...

      When I changed "Insert" to double byte characters
      (Kanji), the following error occured.

      Caused by: org.richfaces.javacc.TokenMgrError: Lexical error at line 1, column 1. Encountered: "\u6f22" (28450), after : ""
      at org.richfaces.javacc.RichMacroDefinitionTokenManager.getNextToken(RichMacroDefinitionTokenManager.java:292)
      at org.richfaces.javacc.RichMacroDefinition.jj_ntk(RichMacroDefinition.java:238)
      at org.richfaces.javacc.RichMacroDefinition.expression(RichMacroDefinition.java:36)
      at org.richfaces.renderkit.MacroDefinitionJSContentHandler.parseExpressiion(MacroDefinitionJSContentHandler.java:78)
      ...

      I tried the EL instead of the literal, the result was same.
      rich:menuItem in rich:dropDownMenu is OK.

      Can anybody help this?
      Regards,