Allow localized composite components
------------------------------------
Key: MYFACES-3308
URL: https://issues.apache.org/jira/browse/MYFACES-3308
Project: MyFaces Core
Issue Type: Improvement
Components: JSR-314
Affects Versions: 2.1.3
Reporter: Michael Kurz
I tried to make a localized composite components for dynamic localization of
content on my pages (that goes beyond resource bundles). The basic idea is to
be able to create composite components with static text and/or components
(links, images...) for different languages. As a composite component basically
is a resource I thought something like this should be possible:
/resources/fragments/fragment01.xhtml
/resources/de/fragments/fragment01.xhtml
IMO the spec is a bit unclear on this but I would say it should work. I tried
it - it did not work. The problem is, that CompositeComponentResourceTagHandler
gets a resource in the constructor that will be used till the death of the
webapp. No chance to switch locales.
My idea is to use a cache holding a resource for every locale.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira