[seam-issues] [JBoss JIRA] Commented: (SEAMINTL-29) bundles messages doesnt return proper values

Ken Finnigan (JIRA) jira-events at lists.jboss.org
Tue Feb 22 21:50:13 EST 2011


    [ https://issues.jboss.org/browse/SEAMINTL-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583987#comment-12583987 ] 

Ken Finnigan commented on SEAMINTL-29:
--------------------------------------

This is certainly a bug that there is no connection between the bundle messages retrieval and the locale of the user.  The suggested solution to make the Bundles class Session instead of Application scoped while a good thought, it is not recommended to store large amounts of data within the Session.

The ideal solution is to retain the Application scoped nature of Bundles while also allowing you to retrieve a bundle based on the current users locale

> bundles messages doesnt return proper values
> --------------------------------------------
>
>                 Key: SEAMINTL-29
>                 URL: https://issues.jboss.org/browse/SEAMINTL-29
>             Project: Seam International
>          Issue Type: Bug
>          Components: Locales
>            Reporter: Sebastian Sachtleben
>            Priority: Critical
>         Attachments: seam-i18n-problem.zip, seam-i18n.zip
>
>
> #{bundles.messages.MyKey} doesnt return the correct properties file after firing locale event and changed the locale of user. @Inject @Client Locale locale returns proper value after changing locale but bundles messages returns values from jdk locale. I will add non working example and I working example with helper class later once the repository is up again.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list