You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2006/11/26 06:18:57 UTC
[jira] Updated: (STR-1093) Incorrect documentation for "Developing
Your Own MessageResources Implementation"
[ http://issues.apache.org/struts/browse/STR-1093?page=all ]
Paul Benedict updated STR-1093:
-------------------------------
Bugzilla Id: (was: 15849)
Component/s: Website
(was: Unknown)
Assignee: (was: Struts Developers)
> Incorrect documentation for "Developing Your Own MessageResources Implementation"
> ---------------------------------------------------------------------------------
>
> Key: STR-1093
> URL: http://issues.apache.org/struts/browse/STR-1093
> Project: Struts 1
> Issue Type: Improvement
> Components: Website
> Affects Versions: Nightly Build
> Environment: Operating System: other
> Platform: All
> Reporter: Charles Fineman
> Priority: Minor
> Fix For: Future
>
>
> [ I wasn't sure what component to put this under since the problem is pretty
> pervasive ]
> Here is a quote from src/share/org/apache/struts/util/package.html:
> ======================================================================
> Create a customized subclass of
> org.apache.struts.util.MessageResourcesFactory that will create an
> instance of your custom MessageResources class when the
> createResources method is called. Note that the "config" argument
> to this method can be used to select families of messages in any
> manner appropriate to your needs - you are not required to emulate
> the "fully qualified Java class name" approach that is used by the
> standard PropertyMessageResourcesFactory class.
> Tell the MessageResourcesFactory class the name of the
> customized MessageResourcesFactory implementation to use
> when creating new factory instances.
> =======================================================================
> There are several places in the Struts code where you see things like:
> protected static MessageResources messages =
> MessageResources.getMessageResources
> ("org.apache.struts.taglib.bean.LocalStrings");
> This uses the MessageResourcesFactory class that is registered with the
> MessageResourcesFactory. It would seem that there are many places in the Struts
> code that do, in fact, depend on the Factory emulating the "fully qualified
> Java class name" approach.
> One solution would be to have all of these MessageResources creations use the
> PropertiesMessageResources constructor directly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira