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

OVal plugin should add message variables

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.8.1
    • Fix Version/s: 2.3.3
    • Component/s: None
    • Labels:
    • Environment:

      struts-oval-plugin 2.1.8.1

      Description

      In the method protected void addValidationErrors(ConstraintViolation[] violations, Object action, ValueStack valueStack, String parentFieldname) of org.apache.struts2.oval.interceptor.OValValidationInterceptor the violation.getMessageVariables() should be pushed into the valueStack in order to get access in the resource bundle to important validation context variables like min length, max lenght, substring, expression, etc.

      thank you

        Attachments

          Activity

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              nickmancol Nicolas Bohorquez Gutierrez
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: