Hi, I’m creating an abstract view class like this:
public class BaseAppFormLayoutView<T> extends VerticalLayout implements View{
...
}
The base abstract class provides the basic template for the table views such as basic format, access to datastore (using mongodb), save(), delete(), bind() methods, etc…
Everything works nice except whith BeanValidationBinder.
private Class<T> baseClass;
BeanValidationBinder<T> binder = new BeanValidationBinder<>(baseClass);
I get the following error
java.lang.NullPointerException: Bean type cannot be null.
I can do the binding in the class that inherits from BaseAppFormLayoutView, but it would be nice to have it in the abstract class.
Any thoughts ,workarounds?
Thanks,
Julio