]
Nick Belaevski resolved RF-1665.
--------------------------------
Fix Version/s: 3.1.4
Resolution: Done
Context menu doesn't work wit El-expressions which are referenced
to properties file
------------------------------------------------------------------------------------
Key: RF-1665
URL:
http://jira.jboss.com/jira/browse/RF-1665
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.3
Environment: Windows XP SP2, JSF RI 1.2_07, RichFaces 3.1.3-GA
Reporter: Alexander Belov
Assigned To: Nick Belaevski
Fix For: 3.1.4, 3.2.0
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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: