Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2592

@validator('formBeanValidator'... does not validate nested properties

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 7.0.4
    • Fix Version/s: 8.0.0
    • Component/s: Databind 2
    • Security Level: Jimmy
    • Labels:
      None

      Description

      the JSR-303 formBeanValidator does not iterate through nested form fields even if they are annotated with the @Valid annotation and have a Constraint on the nested property

      e.g.

      <intbox value="@bind(fx.age)" errorMessage="@load(vmsgs['p_age'])"/>  <!-- works -->
      <textbox value="@bind(fx.nameDto.name)" errorMessage="@load(vmsgs['p_nameDto.name'])"/>  <!-- does not work / not even sure about the syntax of 'p_????' -->
      

      the attached example is a running maven project showing this behaviour

        Attachments

          Activity

            People

            • Assignee:
              jumperchen jumperchen
              Reporter:
              cor3000 cor3000
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: