Wicket
  1. Wicket
  2. WICKET-5418

PropertyValidator ignoring groups with the @NotNull annotation only

    Details

      Description

      When using groups in your JSR303 compliant classes, Wicket does not honor the groups for the @NotNull annotation.

      1. BeanValidation.zip
        28 kB
        Jesus Mireles

        Activity

        Hide
        Jesus Mireles added a comment -

        An example with groups

        Show
        Jesus Mireles added a comment - An example with groups
        Hide
        Martin Grigorov added a comment -

        I had the good willing to debug this problem but you work against yourself.
        1) you removed Start.java from the quickstart so it is harder for me to debug it
        2) your quickstart doesn't use any bean validation impl
        Caused by: javax.validation.ValidationException: Unable to find a default provider
        at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:264)
        at org.apache.wicket.bean.validation.DefaultValidatorProvider.get(DefaultValidatorProvider.java:29)
        at org.apache.wicket.bean.validation.DefaultValidatorProvider.get(DefaultValidatorProvider.java:19)

        I can fix both of these but I see no reason why you tried to make it harder for us.

        Please provide a proper quickstart with steps how to reproduce your problem.

        Show
        Martin Grigorov added a comment - I had the good willing to debug this problem but you work against yourself. 1) you removed Start.java from the quickstart so it is harder for me to debug it 2) your quickstart doesn't use any bean validation impl Caused by: javax.validation.ValidationException: Unable to find a default provider at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:264) at org.apache.wicket.bean.validation.DefaultValidatorProvider.get(DefaultValidatorProvider.java:29) at org.apache.wicket.bean.validation.DefaultValidatorProvider.get(DefaultValidatorProvider.java:19) I can fix both of these but I see no reason why you tried to make it harder for us. Please provide a proper quickstart with steps how to reproduce your problem.
        Hide
        Jesus Mireles added a comment - - edited

        Quickstart to reproduce issue. Sorry Martin, I dont know what happend but I uploaded the wrong quickstart. I fixed and added a few clarifications in the homepage.html

        Show
        Jesus Mireles added a comment - - edited Quickstart to reproduce issue. Sorry Martin, I dont know what happend but I uploaded the wrong quickstart. I fixed and added a few clarifications in the homepage.html

          People

          • Assignee:
            Igor Vaynberg
            Reporter:
            Jesus Mireles
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development