Bind a nativeSelect to a bean property

Hi everyone,

How can i bind a nativeSelect to a bean property?

0 1 2 3 4 5 6 7 8 9 10

Should be bind to:
private Long stueckzahl;

public Long getStueckzahl() {
   return stueckzahl;
}

public void setStueckzahl(final Long stueckzahl) {
    this.stueckzahl = stueckzahl;
}

But instead i get this error: Caused by: java.lang.IllegalStateException: Unable to detect value type for the member 'stueckzahl' in the class 'sator.ui.view.protokolla.ProtokollADesign'.

The problem is probably that in the java file generated with designer i have the field: protected NativeSelect stueckzahl; for which no converter is defined.

How to i define a converter?

Setting the itemType solved my problem:


protected NativeSelect<Long> stueckzahl;

and


 binder.bindInstanceFields(getViewComponent());
 

and in bean:

private Long stueckzahl;

worked.