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

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

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

        

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

Posted by "Martin Marinschek (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-1389?page=all ]

Martin Marinschek resolved MYFACES-1389.
----------------------------------------

    Fix Version/s: 1.1.5-SNAPSHOT
       Resolution: Fixed
         Assignee: Martin Marinschek

Thanks to Nikolay Petrov for clearing this up.

regards,

Martin

> 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
>         Assigned To: Martin Marinschek
>            Priority: Minor
>             Fix For: 1.1.5-SNAPSHOT
>
>
> 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

        

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

Posted by "Guy Bashan (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-1389?page=comments#action_12436462 ] 
            
Guy Bashan commented on MYFACES-1389:
-------------------------------------

I had to escape: "{" character. I did "'{'" and it is working great. thanks.

> 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

        

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

Posted by "Nikolay Petrov (JIRA)" <de...@myfaces.apache.org>.
    [ 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

        

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

Posted by "Martin Marinschek (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-1389?page=all ]

Martin Marinschek reopened MYFACES-1389:
----------------------------------------

             

> 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
>         Assigned To: Martin Marinschek
>            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

        

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

Posted by "Martin Marinschek (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-1389?page=all ]

Martin Marinschek resolved MYFACES-1389.
----------------------------------------

    Fix Version/s:     (was: 1.1.5-SNAPSHOT)
       Resolution: Invalid

> 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
>         Assigned To: Martin Marinschek
>            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