I have an object like: {code} UIInput<String> name {code}
The value is retrieved by calling {{String value = name.getValue();}}, however, my intention is to use the BV annotations:
{code} @Size(min=3, max=10) UIInput<String> name {code}
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 validate {{ UIInput }} , but for the value itself.
This is also useful in JavaFX, where you have {{ StringProperty }} instead of plain Strings etc
|