You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Michael Kurz (JIRA)" <de...@myfaces.apache.org> on 2011/09/17 20:31:08 UTC

[jira] [Updated] (MYFACES-3308) Allow localized composite components

     [ https://issues.apache.org/jira/browse/MYFACES-3308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Kurz updated MYFACES-3308:
----------------------------------

    Status: Patch Available  (was: Open)

> 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