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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.0
    • 7.0.4
    • Databind 2
    • Security Level: Jimmy
    • None

      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

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

              Created:
              Updated:
              Resolved: