You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Nikolay Petrov (JIRA)" <de...@myfaces.apache.org> on 2006/09/20 13:55:23 UTC

[jira] Commented: (MYFACES-1389) Impossible to escape "{", "}" characters in parameterized messages.

    [ http://issues.apache.org/jira/browse/MYFACES-1389?page=comments#action_12436223 ] 
            
Nikolay Petrov commented on MYFACES-1389:
-----------------------------------------

FacesUtil.substituteParams is now in MessageUtils (I think). The one in message utils is using MessageFormat internally. There is written:

Within a String, "''" represents a single quote. A QuotedString can contain arbitrary characters except single quotes; the surrounding single quotes are removed. An UnquotedString can contain arbitrary characters except single quotes and left curly brackets. Thus, a string that should result in the formatted message "'{0}'" can be written as "'''{'0}''" or "'''{0}'''".

Is that fixes the thing?

> Impossible to escape "{", "}" characters in parameterized messages.
> -------------------------------------------------------------------
>
>                 Key: MYFACES-1389
>                 URL: http://issues.apache.org/jira/browse/MYFACES-1389
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 1.1.3
>            Reporter: Guy Bashan
>            Priority: Minor
>
> It seems like using the "{", "}" characters in messages (in resource bundles) is impossible (Unless it is used for params: {0}, {1} etc'). The FacesUtil.subtituteParams seems to be throwing an exception. I tried escaping the characters by using "\{" but it still not working.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira