[richfaces-issues] [JBoss JIRA] Updated: (RF-7916) Javascript error when having non escaped apostrophe in rich:calendar labels
Jay Balunas (JIRA)
jira-events at lists.jboss.org
Mon Sep 28 11:39:03 EDT 2009
[ https://jira.jboss.org/jira/browse/RF-7916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jay Balunas updated RF-7916:
----------------------------
Fix Version/s: Future
(was: 3.3.2.GA)
> 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
> Assignee: Andrey Markhel
> Priority: Minor
> Fix For: Future
>
> Original Estimate: 3 hours
> Remaining Estimate: 3 hours
>
> 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