[JBoss JIRA] Created: (RF-1665) Context menu doesn't work wit El-expressions which are referenced to properties file
by Alexander Belov (JIRA)
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
16 years, 12 months
[JBoss JIRA] Created: (RF-1498) contextMenu: unexpected element appears
by Ilya Shaikovsky (JIRA)
contextMenu: unexpected element appears
---------------------------------------
Key: RF-1498
URL: http://jira.jboss.com/jira/browse/RF-1498
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Reporter: Ilya Shaikovsky
Assigned To: Maksim Kaszynski
Fix For: 3.2.0
Shoul be fixed for 3.1.3 (influence demo site)
<rich:contextMenu attached="false" id="menu">
<rich:menuItem value="Show Details"></rich:menuItem>
<rich:menuGroup value="Actions">
<rich:menuItem value="Put To Basket"></rich:menuItem>
<rich:menuItem value="Read Comments"></rich:menuItem>
<rich:menuItem value="Go to {car}"></rich:menuItem>
</rich:menuGroup>
</rich:contextMenu>
<rich:dataGrid value="#{dataTableScrollerBean.allCars}" var="car" columns="4" elements="12">
<rich:panel id="panel">
<rich:componentControl attachTo="panel" event="oncontextmenu" for=":form:menu" operation="doShow">
<f:param value="#{car.model}" name="car"/>
</rich:componentControl>
<f:facet name="header">
<h:outputText value="#{car.make} #{car.model}"></h:outputText>
</f:facet>
<h:panelGrid columns="2">
<h:outputText value="Price:" styleClass="label"></h:outputText>
<h:outputText value="#{car.price}" />
</h:panelGrid>
</rich:panel>
<f:facet name="footer">
<rich:datascroller></rich:datascroller>
</f:facet>
</rich:dataGrid>
look to screens after menu activation
--
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
16 years, 12 months