Uploaded image for project: 'XWork'
  1. XWork
  2. XW-738

TextProviderFactory is never injected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • 2.1.7
    • 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.

      Attachments

        Activity

          People

            lukasz03 Disabled - L-u-k-a-s-z Lenart - OpenSymphony
            nberthet Nicolas Berthet
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: