Hi Guys,
Im Binding a combobox inside a grid and I have no idea what’s the problem with my code.
private void bindColumnsToEditor() {
ComboBox<String> policy = new ComboBox<>();
policy.setDataProvider(new ListDataProvider<>(Arrays.asList(CommonStaticValue.TIMEKEEPING_POLICY)));
Binder<Time> binder = this.getEditor().getBinder();
this.addColumn(Time::getDate).setCaption("DATE");
Binding<Time, String> policyBinding = binder.forField(policy).bind(Time::getPolicy, Time::setPolicy);
this.addColumn(Time::getPolicy).setCaption("Policy").setWidth(150).setEditorBinding(policyBinding);
}
Error: java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: com.vaadin.data.Binder.BindingBuilder.bind
the error refers to the line:
this.addColumn(Time::getPolicy).setCaption("Policy").setWidth(150).setEditorBinding(policyBinding);
Im using Vaadin 8.3 and Netbeans 8.2