You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Veit Guna (JIRA)" <de...@myfaces.apache.org> on 2008/02/27 20:55:51 UTC

[jira] Created: (MYFACES-1827) MessageUtils don't handle MessageFormat substitution correctly with different Locale

MessageUtils don't handle MessageFormat substitution correctly with different Locale
------------------------------------------------------------------------------------

                 Key: MYFACES-1827
                 URL: https://issues.apache.org/jira/browse/MYFACES-1827
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 1.1.5
         Environment: Java 6+5, Myfaces 1.1.5
            Reporter: Veit Guna
             Fix For: 1.1.5


Using MessageUtils to generate FacesMessages from ResourceBundle like:

my.message.key=Your current balance is {0,number,currency}

Doesn't work out for other locales than the default one. Internally MessageUtils uses MessageFormat to do substitution. Due to wrong handling
the given Locale won't be used correctly leading to wrong currency symbols and formatting in for example t:messages.

The provided patch includes the fix, as well as two testcases to reproduce the problem.

BTW: is there any JSF-API way to have resource bundle entries read via MessageFormat?


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (MYFACES-1827) MessageUtils don't handle MessageFormat substitution correctly with different Locale

Posted by "Thomas Spiegl (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-1827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Spiegl reopened MYFACES-1827:
------------------------------------


fix also in 1.2.3-SNAPSHOT

> MessageUtils don't handle MessageFormat substitution correctly with different Locale
> ------------------------------------------------------------------------------------
>
>                 Key: MYFACES-1827
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1827
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 1.1.5
>         Environment: Java 6+5, Myfaces 1.1.5
>            Reporter: Veit Guna
>            Assignee: Thomas Spiegl
>             Fix For: 1.1.6
>
>         Attachments: MessageUtils.patch
>
>
> Using MessageUtils to generate FacesMessages from ResourceBundle like:
> my.message.key=Your current balance is {0,number,currency}
> Doesn't work out for other locales than the default one. Internally MessageUtils uses MessageFormat to do substitution. Due to wrong handling
> the given Locale won't be used correctly leading to wrong currency symbols and formatting in for example t:messages.
> The provided patch includes the fix, as well as two testcases to reproduce the problem.
> BTW: is there any JSF-API way to have resource bundle entries read via MessageFormat?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (MYFACES-1827) MessageUtils don't handle MessageFormat substitution correctly with different Locale

Posted by "Veit Guna (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-1827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Veit Guna updated MYFACES-1827:
-------------------------------

    Status: Patch Available  (was: Open)

> MessageUtils don't handle MessageFormat substitution correctly with different Locale
> ------------------------------------------------------------------------------------
>
>                 Key: MYFACES-1827
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1827
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 1.1.5
>         Environment: Java 6+5, Myfaces 1.1.5
>            Reporter: Veit Guna
>             Fix For: 1.1.5
>
>
> Using MessageUtils to generate FacesMessages from ResourceBundle like:
> my.message.key=Your current balance is {0,number,currency}
> Doesn't work out for other locales than the default one. Internally MessageUtils uses MessageFormat to do substitution. Due to wrong handling
> the given Locale won't be used correctly leading to wrong currency symbols and formatting in for example t:messages.
> The provided patch includes the fix, as well as two testcases to reproduce the problem.
> BTW: is there any JSF-API way to have resource bundle entries read via MessageFormat?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (MYFACES-1827) MessageUtils don't handle MessageFormat substitution correctly with different Locale

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-1827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Weßendorf updated MYFACES-1827:
----------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.1.5)
                   1.1.6
           Status: Resolved  (was: Patch Available)

> MessageUtils don't handle MessageFormat substitution correctly with different Locale
> ------------------------------------------------------------------------------------
>
>                 Key: MYFACES-1827
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1827
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 1.1.5
>         Environment: Java 6+5, Myfaces 1.1.5
>            Reporter: Veit Guna
>            Assignee: Thomas Spiegl
>             Fix For: 1.1.6
>
>         Attachments: MessageUtils.patch
>
>
> Using MessageUtils to generate FacesMessages from ResourceBundle like:
> my.message.key=Your current balance is {0,number,currency}
> Doesn't work out for other locales than the default one. Internally MessageUtils uses MessageFormat to do substitution. Due to wrong handling
> the given Locale won't be used correctly leading to wrong currency symbols and formatting in for example t:messages.
> The provided patch includes the fix, as well as two testcases to reproduce the problem.
> BTW: is there any JSF-API way to have resource bundle entries read via MessageFormat?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (MYFACES-1827) MessageUtils don't handle MessageFormat substitution correctly with different Locale

Posted by "Thomas Spiegl (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-1827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Spiegl resolved MYFACES-1827.
------------------------------------

    Resolution: Fixed

now it's also fixed in 1.2.3-SNAPSHOT

> MessageUtils don't handle MessageFormat substitution correctly with different Locale
> ------------------------------------------------------------------------------------
>
>                 Key: MYFACES-1827
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1827
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 1.1.5
>         Environment: Java 6+5, Myfaces 1.1.5
>            Reporter: Veit Guna
>            Assignee: Thomas Spiegl
>             Fix For:  1.1.6-SNAPSHOT, 1.2.3-SNAPSHOT
>
>         Attachments: MessageUtils.patch
>
>
> Using MessageUtils to generate FacesMessages from ResourceBundle like:
> my.message.key=Your current balance is {0,number,currency}
> Doesn't work out for other locales than the default one. Internally MessageUtils uses MessageFormat to do substitution. Due to wrong handling
> the given Locale won't be used correctly leading to wrong currency symbols and formatting in for example t:messages.
> The provided patch includes the fix, as well as two testcases to reproduce the problem.
> BTW: is there any JSF-API way to have resource bundle entries read via MessageFormat?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.