myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorbjørn Ravn Andersen (JIRA) <...@myfaces.apache.org>
Subject [jira] Created: (MYFACES-1472) <f:loadBundle> does not allow for using 1.6 features regarding caching and reloadability etc.
Date Fri, 20 Oct 2006 11:00:34 GMT
<f:loadBundle> does not allow for using 1.6 features regarding caching and reloadability
etc.
---------------------------------------------------------------------------------------------

                 Key: MYFACES-1472
                 URL: http://issues.apache.org/jira/browse/MYFACES-1472
             Project: MyFaces Core
          Issue Type: Improvement
    Affects Versions: 1.1.4
            Reporter: Thorbjørn Ravn Andersen


I would like to use the new 1.6 facilities of ResourceBundle.Control to get a ResourceBundle
with translation that picks up changes in the underlying property files on the fly.

The code in LoadBundleTag.java (1.1.4) doing this is:

        final ResourceBundle bundle;
        try
        {
            bundle = ResourceBundle.getBundle(basename,
                                              locale,
                                              Thread.currentThread().getContextClassLoader());
        }
        catch (MissingResourceException e)
        {
            log.error("Resource bundle '" + basename + "' could not be found.");
            return Tag.SKIP_BODY;
        }

which does not allow for any customization.  If the "ResourceBundle.getBundle(....)" could
be done in an overridable way in a factory where I can provide my own 1.6 code, it would probably
solve this while keeping this code 1.2 compatible.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message