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
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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues