RichFaces
  1. RichFaces
  2. RF-1665

Context menu doesn't work wit El-expressions which are referenced to properties file

    Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: 3.1.3
    • Fix Version/s: 3.1.4, 3.2.0
    • Component/s: None
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Environment:
      Windows XP SP2, JSF RI 1.2_07, RichFaces 3.1.3-GA
    • Similar Issues:
      Show 10 results 

      Description

      This code doen't work:
      <rich:contextMenu event="oncontextmenu">
      <rich:menuItem value="#

      {app.thirdSettingsLabel}

      " id="thirdContextMenuItem"/>
      </rich:contextMenu>

      app - Resource Bundle. It is referenced to app.properties file, UTF-8.

      This code works:
      <rich:contextMenu event="oncontextmenu">
      <rich:menuItem value="thirdSettingsLabel" id="thirdContextMenuItem"/>
      </rich:contextMenu>

      In the first way where is an exception:
      org.richfaces.javacc.TokenMgrError: Lexical error at line 1, column 1. Encountered: "\u041f" (1055), 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)
      at org.richfaces.renderkit.html.ContextMenuContentHandler.parseExpressiion(ContextMenuContentHandler.java:97)
      at org.richfaces.renderkit.MacroDefinitionJSContentHandler.characters(MacroDefinitionJSContentHandler.java:158)
      at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.characters(ToXMLSAXHandler.java:542)
      at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.characters(ToXMLSAXHandler.java:467)
      at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:240)

        Activity

        Hide
        Nick Belaevski
        added a comment -

        Fixed

        Show
        Nick Belaevski
        added a comment - Fixed
        Hide
        Ilya Shaikovsky
        added a comment -

        Nick please merge this with branch. Then resolve with both versions to our QA.

        Show
        Ilya Shaikovsky
        added a comment - Nick please merge this with branch. Then resolve with both versions to our QA.

          People

          • Assignee:
            Nick Belaevski
            Reporter:
            Alexander Belov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: