[ 
https://issues.apache.org/jira/browse/WW-3790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13246648#comment-13246648
 ] 

Joaquin Diez commented on WW-3790:
----------------------------------

Hi Lukasz, 

yes all my actions extends ActionSupport, and I have just found what was wrong.

The Actions that have a Constructor, the Container object is null, so the 
ActionSupport class use the DefaultTextProvider instead of my custom one. 

I do not know if that is the expected behaviour, but  at least now I can change 
my code so I remove all the Constructors from my Actions.

Regards
                
> Unable to Use My Custom TextProvider from Action getText() methos
> -----------------------------------------------------------------
>
>                 Key: WW-3790
>                 URL: https://issues.apache.org/jira/browse/WW-3790
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.3.1.2
>            Reporter: Joaquin Diez
>
> I  build my own Text Provider with
> public class MyTextProvider extends TextProviderSupport ...
> and configure in struts.xml
> <bean class="lt.web.core.MyTextProvider" name="myTextProvider" 
> type="com.opensymphony.xwork2.TextProvider" />
> <constant name="struts.xworkTextProvider" value="myTextProvider" />
> <constant name="system" value="myTextProvider" />
> But when i make inside and action.. this.getText("whatever");   in does not 
> run my custom provider..

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to