Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4202

CustomTextProvider not used for validation errors of model driven actions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.15.1
    • Fix Version/s: 2.3.20
    • Component/s: Annotations, XML Validators
    • Labels:
      None

      Description

      When an application registers it's own TextProvider via 'struts.xworkTextProvider' in struts.xml, it is not used for validation errors of Model-Members of ModelDriven actions.

      Ɓukasz commented on the mailing list:

      > There is a bug in DelegatingValidatorContext#makeTextProvider method -
      > it should first try to use parent before creating new instance of
      > TextProvider (base on TextProviderFactory but without injecting
      > dependencies :)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lukaszlenart Lukasz Lenart
                Reporter:
                cn42 Christoph Nenning
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: