Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
-
XWork 2.1.6, Struts 2.1.8
Description
In struts it is possible to choose the TextProvider implementation (struts.xworkTextProvider)
The TextProviderFactory contains the proper annotation :
@Inject
public void setTextProvider(TextProvider textProvider)
But it is never injected in XWork, in both ActionSupport and DelegatingValidatorContext, a new TextProviderFactory is created and not injected before use, so, we cannot use this functionnality. It seems to be "useable" only through Struts' i18n tag.