struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <>
Subject Re: LocaleProvder not unique
Date Tue, 14 Mar 2017 05:53:15 GMT
2017-03-13 21:51 GMT+01:00 Christian Grobmeier <>:
> OK, using component scan i had success with using DefaultLocaleProvider
> as default in my applicationContext.xml:
> <bean name="localeProvider"
> class="com.opensymphony.xwork2.DefaultLocaleProvider" primary="true" />
> (mind the primary)
> So far it makes halfway sense to me. A few tests fail still because they
> access getText and do no receive a context. Digging into this

Hmm... I think I see your point and this is somehow aligned with what
I want to do with TextProvider layer. I mean, there is already a
TextProviderFactory that is used to create custom TextProviders so I
think I will used instead of TextProvider to inject as a dependency.
This will allow to have TextProvider implemented by the ActionSupport
and use TextProviderFactory as a dependency and there be type

Here is a first step to do so

I will start another PR soon to replace TextProvider with
TextProviderFactory, if you could test this approach it would be cool

+ 48 606 323 122

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message