You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Thorbjørn Ravn Andersen (JIRA)" <de...@myfaces.apache.org> on 2006/10/20 13:00:34 UTC
[jira] Created: (MYFACES-1472) does not allow for
using 1.6 features regarding caching and reloadability etc.
<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