List Info

Thread: Created: (WW-1748) Configure XWork TextProvider with struts.properties (requires XWork 2.0.1)




Created: (WW-1748) Configure XWork TextProvider with struts.properties (requires XWork 2.0.1)
country flaguser name
United States
2007-02-20 09:49:16
Configure XWork TextProvider with struts.properties
(requires XWork 2.0.1)
------------------------------------------------------------
--------------

                 Key: WW-1748
                 URL: https
://issues.apache.org/struts/browse/WW-1748
             Project: Struts 2
          Issue Type: Improvement
          Components: Configuration
            Reporter: Oleg Gorobets


Export configuration of XWork TextProvider to
struts.properties and use TextProviderFactory.getInstance()
instead of TextProviderSupport class directly to get XWork
text provider. Submitted patch allows flexible configuration
of i18n message source for struts2/xwork. See corresponding
XWork jira issue for reference: http://jir
a.opensymphony.com/browse/XW-475

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Updated: (WW-1748) Configure XWork TextProvider with struts.properties (requires XWork 2.0.1)
country flaguser name
United States
2007-02-20 09:53:16
     [ https://issues.apache.org/struts/browse/WW-1748?page=com.at
lassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Gorobets updated WW-1748:
------------------------------

    Attachment: struts2_TextProvider.patch

Patch added.

> Configure XWork TextProvider with struts.properties
(requires XWork 2.0.1)
>
------------------------------------------------------------
--------------
>
>                 Key: WW-1748
>                 URL: https
://issues.apache.org/struts/browse/WW-1748
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Configuration
>            Reporter: Oleg Gorobets
>         Attachments: struts2_TextProvider.patch
>
>
> Export configuration of XWork TextProvider to
struts.properties and use TextProviderFactory.getInstance()
instead of TextProviderSupport class directly to get XWork
text provider. Submitted patch allows flexible configuration
of i18n message source for struts2/xwork. See corresponding
XWork jira issue for reference: http://jir
a.opensymphony.com/browse/XW-475

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Updated: (WW-1748) Configure XWork TextProvider with struts.properties (requires XWork 2.0.1)
country flaguser name
United States
2007-03-04 17:53:16
     [ https://issues.apache.org/struts/browse/WW-1748?page=com.at
lassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tom Schneider updated WW-1748:
------------------------------

    Affects Version/s: 2.0.6
        Fix Version/s: 2.1.0
                       2.0.7

> Configure XWork TextProvider with struts.properties
(requires XWork 2.0.1)
>
------------------------------------------------------------
--------------
>
>                 Key: WW-1748
>                 URL: https
://issues.apache.org/struts/browse/WW-1748
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 2.0.6
>            Reporter: Oleg Gorobets
>             Fix For: 2.0.7, 2.1.0
>
>         Attachments: struts2_TextProvider.patch
>
>
> Export configuration of XWork TextProvider to
struts.properties and use TextProviderFactory.getInstance()
instead of TextProviderSupport class directly to get XWork
text provider. Submitted patch allows flexible configuration
of i18n message source for struts2/xwork. See corresponding
XWork jira issue for reference: http://jir
a.opensymphony.com/browse/XW-475

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Assigned: (WW-1748) Configure XWork TextProvider with struts.properties (requires XWork 2.0.1
country flaguser name
United States
2007-03-08 02:44:11
     [ https://issues.apache.org/struts/browse/WW-1748?page=com.at
lassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rene Gielen reassigned WW-1748:
-------------------------------

    Assignee: Rene Gielen

> Configure XWork TextProvider with struts.properties
(requires XWork 2.0.1)
>
------------------------------------------------------------
--------------
>
>                 Key: WW-1748
>                 URL: https
://issues.apache.org/struts/browse/WW-1748
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 2.0.6
>            Reporter: Oleg Gorobets
>         Assigned To: Rene Gielen
>             Fix For: 2.0.7
>
>         Attachments: struts2_TextProvider.patch
>
>
> Export configuration of XWork TextProvider to
struts.properties and use TextProviderFactory.getInstance()
instead of TextProviderSupport class directly to get XWork
text provider. Submitted patch allows flexible configuration
of i18n message source for struts2/xwork. See corresponding
XWork jira issue for reference: http://jir
a.opensymphony.com/browse/XW-475

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Resolved: (WW-1748) Configure XWork TextProvider with struts.properties (requires XWork 2.0.1
country flaguser name
United States
2007-03-08 03:32:11
     [ https://issues.apache.org/struts/browse/WW-1748?page=com.at
lassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rene Gielen resolved WW-1748.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.0

Patch reviewed & applied, thanks Oleg.

> Configure XWork TextProvider with struts.properties
(requires XWork 2.0.1)
>
------------------------------------------------------------
--------------
>
>                 Key: WW-1748
>                 URL: https
://issues.apache.org/struts/browse/WW-1748
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 2.0.6
>            Reporter: Oleg Gorobets
>         Assigned To: Rene Gielen
>             Fix For: 2.0.7, 2.1.0
>
>         Attachments: struts2_TextProvider.patch
>
>
> Export configuration of XWork TextProvider to
struts.properties and use TextProviderFactory.getInstance()
instead of TextProviderSupport class directly to get XWork
text provider. Submitted patch allows flexible configuration
of i18n message source for struts2/xwork. See corresponding
XWork jira issue for reference: http://jir
a.opensymphony.com/browse/XW-475

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Resolved: (WW-1748) Configure XWork TextProvider with struts.properties (requires XWork 2.0.1
country flaguser name
United States
2007-03-29 03:39:51
     [ https://issues.apache.org/struts/browse/WW-1748?page=com.at
lassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rene Gielen resolved WW-1748.
-----------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.0.7)
                   2.0.8

Fixed with WW-1856

> Configure XWork TextProvider with struts.properties
(requires XWork 2.0.1)
>
------------------------------------------------------------
--------------
>
>                 Key: WW-1748
>                 URL: https
://issues.apache.org/struts/browse/WW-1748
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 2.0.6
>            Reporter: Oleg Gorobets
>         Assigned To: Rene Gielen
>             Fix For: 2.0.8, 2.1.0
>
>         Attachments: struts2_TextProvider.patch
>
>
> Export configuration of XWork TextProvider to
struts.properties and use TextProviderFactory.getInstance()
instead of TextProviderSupport class directly to get XWork
text provider. Submitted patch allows flexible configuration
of i18n message source for struts2/xwork. See corresponding
XWork jira issue for reference: http://jir
a.opensymphony.com/browse/XW-475

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Commented: (WW-1748) Configure XWork TextProvider with struts.properties (requires XWork 2.0.
country flaguser name
United States
2007-10-24 07:59:40
    [ https://issues.apache.org/struts/browse/WW
-1748?page=com.atlassian.jira.plugin.system.issuetabpanels:c
omment-tabpanel#action_42447 ] 

Vlasov Igor commented on WW-1748:
---------------------------------

Hello Imtry touse this feature and add 

struts.xworkTextProvider=karakas.struts.RicoTextProvider

but in ActionSupport i see 

 private final transient TextProvider textProvider = new
TextProviderFactory().createInstance(getClass(), this);


and in TextProviderFactory  (XWork v2.1.0)  i see
public class TextProviderFactory {

    private TextProvider textProvider;

    Inject
    public void setTextProvider(TextProvider textProvider)
{
        this.textProvider = textProvider;
    }

    protected TextProvider getTextProvider() {
        if (this.textProvider == null) {
            return new TextProviderSupport();
        } else {
            return textProvider;
        }
    }

    public TextProvider createInstance(Class clazz,
LocaleProvider provider) {
        TextProvider instance = getTextProvider();
        if (instance instanceof ResourceBundleTextProvider)
{
            ((ResourceBundleTextProvider)
instance).setClazz(clazz);
            ((ResourceBundleTextProvider)
instance).setLocaleProvider(provider);
        }
        return instance;
    }
......


ANd i always recieve TextProviderSupport();!!!

> Configure XWork TextProvider with struts.properties
(requires XWork 2.0.1)
>
------------------------------------------------------------
--------------
>
>                 Key: WW-1748
>                 URL: https
://issues.apache.org/struts/browse/WW-1748
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 2.0.6
>            Reporter: Oleg Gorobets
>            Assignee: Rene Gielen
>             Fix For: 2.0.8, 2.1.0
>
>         Attachments: struts2_TextProvider.patch
>
>
> Export configuration of XWork TextProvider to
struts.properties and use TextProviderFactory.getInstance()
instead of TextProviderSupport class directly to get XWork
text provider. Submitted patch allows flexible configuration
of i18n message source for struts2/xwork. See corresponding
XWork jira issue for reference: http://jir
a.opensymphony.com/browse/XW-475

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Issue Comment Edited: (WW-1748) Configure XWork TextProvider with struts.properties (requires
country flaguser name
United States
2007-10-24 08:03:41
    [ https://issues.apache.org/struts/browse/WW
-1748?page=com.atlassian.jira.plugin.system.issuetabpanels:c
omment-tabpanel#action_42447 ] 

vigor edited comment on WW-1748 at 10/24/07 6:01 AM:
-----------------------------------------------------------

Hello Im try to use this feature and add 

struts.xworkTextProvider=karakas.struts.RicoTextProvider

but in ActionSupport i see 

 private final transient TextProvider textProvider = new
TextProviderFactory().createInstance(getClass(), this);


and in TextProviderFactory  (XWork v2.1.0)  i see
public class TextProviderFactory {

    private TextProvider textProvider;

    Inject
    public void setTextProvider(TextProvider textProvider)
{
        this.textProvider = textProvider;
    }

    protected TextProvider getTextProvider() {
        if (this.textProvider == null) {
            return new TextProviderSupport();
        } else {
            return textProvider;
        }
    }

    public TextProvider createInstance(Class clazz,
LocaleProvider provider) {
        TextProvider instance = getTextProvider();
        if (instance instanceof ResourceBundleTextProvider)
{
            ((ResourceBundleTextProvider)
instance).setClazz(clazz);
            ((ResourceBundleTextProvider)
instance).setLocaleProvider(provider);
        }
        return instance;
    }
......


ANd i always recieve TextProviderSupport();!!!

      was (Author: vigor):
    Hello Imtry touse this feature and add 

struts.xworkTextProvider=karakas.struts.RicoTextProvider

but in ActionSupport i see 

 private final transient TextProvider textProvider = new
TextProviderFactory().createInstance(getClass(), this);


and in TextProviderFactory  (XWork v2.1.0)  i see
public class TextProviderFactory {

    private TextProvider textProvider;

    Inject
    public void setTextProvider(TextProvider textProvider)
{
        this.textProvider = textProvider;
    }

    protected TextProvider getTextProvider() {
        if (this.textProvider == null) {
            return new TextProviderSupport();
        } else {
            return textProvider;
        }
    }

    public TextProvider createInstance(Class clazz,
LocaleProvider provider) {
        TextProvider instance = getTextProvider();
        if (instance instanceof ResourceBundleTextProvider)
{
            ((ResourceBundleTextProvider)
instance).setClazz(clazz);
            ((ResourceBundleTextProvider)
instance).setLocaleProvider(provider);
        }
        return instance;
    }
......


ANd i always recieve TextProviderSupport();!!!
  
> Configure XWork TextProvider with struts.properties
(requires XWork 2.0.1)
>
------------------------------------------------------------
--------------
>
>                 Key: WW-1748
>                 URL: https
://issues.apache.org/struts/browse/WW-1748
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 2.0.6
>            Reporter: Oleg Gorobets
>            Assignee: Rene Gielen
>             Fix For: 2.0.8, 2.1.0
>
>         Attachments: struts2_TextProvider.patch
>
>
> Export configuration of XWork TextProvider to
struts.properties and use TextProviderFactory.getInstance()
instead of TextProviderSupport class directly to get XWork
text provider. Submitted patch allows flexible configuration
of i18n message source for struts2/xwork. See corresponding
XWork jira issue for reference: http://jir
a.opensymphony.com/browse/XW-475

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


[1-8]

about | contact  Other archives ( Real Estate discussion Medical topics )