Uploaded image for project: 'Hibernate Validator'
  1. Hibernate Validator
  2. HV-819

Add an API/SPI which allows to make the process of value retrieval customizable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.Alpha1
    • Fix Version/s: 5.1.0.Beta1
    • Component/s: engine
    • Labels:
      None
    • Last commented by a user?:
      true

      Description

      I have an object like:

      UIInput<String> name
      

      The value is retrieved by calling String value = name.getValue();, however, my intention is to use the BV annotations:

      @Size(min=3, max=10)
      UIInput<String> name
      

      The problem is that an javax.validation.UnexpectedTypeExceptionHV000030: No validator could be found for type: org.jboss.forge.addon.ui.input.UIInput<java.lang.String> is thrown. This is correct according to the spec, since I don't intend to
      validate UIInput, but the value itself.

      This is also useful in JavaFX, where you have StringProperty instead of plain Strings etc

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: