[seam-issues] [JBoss JIRA] (SEAMINTL-57) Select Message Interface by Locale

Ken Finnigan (Updated) (JIRA) jira-events at lists.jboss.org
Tue Dec 20 22:47:09 EST 2011

     [ https://issues.jboss.org/browse/SEAMINTL-57?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ken Finnigan updated SEAMINTL-57:

    Fix Version/s: 3.2.0.Alpha1

> Select Message Interface by Locale
> ----------------------------------
>                 Key: SEAMINTL-57
>                 URL: https://issues.jboss.org/browse/SEAMINTL-57
>             Project: Seam International
>          Issue Type: Enhancement
>          Components: Locales, Messages
>            Reporter: Ken Finnigan
>            Assignee: Ken Finnigan
>             Fix For: 3.2.0.Alpha1
> If a developer Injects a message interface and then does BlahMessages.helloWorld("Brian"); how does that become localized to either the App locale or the Client locale?
> For App locale, could specify developer adds @Locale('fr') to message interface injection point
> For Client locale, above approach doesn't work.  Need to have a wrapper class around the various locale specific message interfaces that the developer would inject to use, and then when called would call the appropriate locale specific version.
> Something like:
> class MessagesWrapper<BlahMessage> {}
> with a way to specify which locales are supported in that wrapper, so it knows possible locale specific interfaces it would require, and then it uses the @Client @Locale to retrieve the correct localized message

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list