hi to all
i have this problem when i display my grid
//this solution display obviously all the zero values on the grid
grid.addColumn(Tax::getDoubleValue, new NumberRenderer()).setId("tax").setCaption("Tax")
.setEditorBinding(
binder.forField(new TextField()).withConverter(new StringToDoubleConverter("not a double!"))
.bind(Tax::getDoubleValue, Tax::setDoubleValue));
//the second one solution produce follow error:
grid.addColumn(taxList -> (taxList.getDoubleValue() == 0) ? "" :taxList.getDoubleValue(), new NumberRenderer()).setId("tax").setCaption("Tax")
.setEditorBinding(
binder.forField(new TextField()).withConverter(new StringToDoubleConverter("not a double!"))
.bind(Tax::getDoubleValue, Tax::setDoubleValue));
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number
can anyone help me? Thanks.