Struts 2
  1. Struts 2
  2. WW-4202

CustomTextProvider not used for validation errors of model driven actions

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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 :)

        Activity

        Lukasz Lenart made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Lukasz Lenart made changes -
        Fix Version/s 2.3.18 [ 12319176 ]
        Fix Version/s 2.3.17 [ 12324780 ]
        Lukasz Lenart made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Lukasz Lenart [ lukaszlenart ]
        Resolution Fixed [ 1 ]
        Lukasz Lenart made changes -
        Field Original Value New Value
        Fix Version/s 2.3.17 [ 12324780 ]
        Christoph Nenning created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development