[richfaces-issues] [JBoss JIRA] Created: (RF-7916) Javascript error when having non escaped apostrophe in rich:calendar labels
Julien Kronegg (JIRA)
jira-events at lists.jboss.org
Mon Sep 21 02:39:49 EDT 2009
Javascript error when having non escaped apostrophe in rich:calendar labels
---------------------------------------------------------------------------
Key: RF-7916
URL: https://jira.jboss.org/jira/browse/RF-7916
Project: RichFaces
Issue Type: Bug
Components: component-output
Affects Versions: 3.3.0
Environment: Seam 2.1.2, Richfaces 3.3.0
Reporter: Julien Kronegg
Priority: Minor
Richfaces Calendar labels can be translated/i18n by adding the following properties in the resource bundle (e.g. messages.properties):
RICH_CALENDAR_TODAY_LABEL
RICH_CALENDAR_CLEAN_LABEL
RICH_CALENDAR_APPLY_LABEL
RICH_CALENDAR_CLOSE_LABEL
RICH_CALENDAR_OK_LABEL
RICH_CALENDAR_CANCEL_LABEL
The problem is that a Javascript error occurs when the property value contain a non escaped apostrophe ('), for example with RICH_CALENDAR_TODAY_LABEL=Aujourd'hui (french label for today):
Error: missing } after property list
Source Code: labels:{apply:'Appliquer', today:'Aujourd'hui', clean:'Effacer', cancel:'Annuler', ok:'Ok', close:'X'},
Richfaces should escape automatically unescaped apostrophes.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list