Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-2245

Custom validator disables hibernate default validator

    Details

      Description

      The default hibernate validator doesn't work anymore, as soon as a custom validator is added to the component, though the text field is put inside a validateAll tag.
      In the class ValidateAllRendererBase following code is found, which is buggy in my opinion:

      if ( evh.getValidators().length==0 && evh.getValidators().length == 0 )

      { evh.addValidator( new ModelValidator() ); }

      First of all, I don't understand, why you check the same condition twice. Second, I have no clue, why you only add the ModelValidator, if here is no other validator. I would exactly like to combine the hibernate validator with my custom one.

      Pleas remove the if check. I would also like to help and fix this bug.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                pmuir Pete Muir
                Reporter:
                dapeng dapeng wang
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: