|
I have an object like:
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 have custom validators for UIInput, but for the value itself.
This is also useful in JavaFX, where you have StringProperty instead of plain Strings etc
|