[richfaces-issues] [JBoss JIRA] Created: (RF-1665) Context menu doesn't work wit El-expressions which are referenced to properties file

Alexander Belov (JIRA) jira-events at lists.jboss.org
Tue Dec 18 05:49:44 EST 2007


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


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: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list