WW-4762 Defines default-only bean

Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/46043336
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/46043336
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/46043336

Branch: refs/heads/master
Commit: 4604333649a0060421c07cd5520c8285ca0c135f
Parents: fd168c4
Author: Lukasz Lenart <lukaszlen...@apache.org>
Authored: Wed May 10 15:48:35 2017 +0200
Committer: Lukasz Lenart <lukaszlen...@apache.org>
Committed: Wed May 10 15:48:35 2017 +0200

----------------------------------------------------------------------
 core/src/main/resources/struts-default.xml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/46043336/core/src/main/resources/struts-default.xml
----------------------------------------------------------------------
diff --git a/core/src/main/resources/struts-default.xml 
b/core/src/main/resources/struts-default.xml
index ead2954..bf2c1f7 100644
--- a/core/src/main/resources/struts-default.xml
+++ b/core/src/main/resources/struts-default.xml
@@ -130,8 +130,10 @@
     <bean type="com.opensymphony.xwork2.conversion.impl.NumberConverter" 
name="struts" class="com.opensymphony.xwork2.conversion.impl.NumberConverter" 
scope="singleton"/>
     <bean type="com.opensymphony.xwork2.conversion.impl.StringConverter" 
name="struts" class="com.opensymphony.xwork2.conversion.impl.StringConverter" 
scope="singleton"/>
 
-    <bean type="com.opensymphony.xwork2.TextProvider" name="system" 
class="com.opensymphony.xwork2.DefaultTextProvider" scope="singleton" />
+    <bean type="com.opensymphony.xwork2.LocalizedTextProvider" 
name="only-default" 
class="com.opensymphony.xwork2.util.DefaultLocalizedTextProvider" 
scope="singleton" />
     <bean type="com.opensymphony.xwork2.LocalizedTextProvider" name="struts" 
class="com.opensymphony.xwork2.util.StrutsLocalizedTextProvider" 
scope="singleton" />
+
+    <bean type="com.opensymphony.xwork2.TextProvider" name="system" 
class="com.opensymphony.xwork2.DefaultTextProvider" scope="singleton" />
     <bean type="com.opensymphony.xwork2.TextProviderFactory" name="struts" 
class="com.opensymphony.xwork2.StrutsTextProviderFactory" scope="singleton" />
     <bean type="com.opensymphony.xwork2.LocaleProviderFactory" name="struts" 
class="com.opensymphony.xwork2.DefaultLocaleProviderFactory" scope="singleton" 
/>
 

Reply via email to