Search in sources :

Example 1 with ObjectToObjectConverter

use of com.haulmont.cuba.web.toolkit.ui.converters.ObjectToObjectConverter in project cuba by cuba-platform.

the class WebAbstractOptionsBase method initDefaults.

protected void initDefaults(AbstractSelect component) {
    component.setImmediate(true);
    component.setInvalidCommitted(true);
    component.setItemCaptionMode(AbstractSelect.ItemCaptionMode.ITEM);
    component.setConverter(new ObjectToObjectConverter());
}
Also used : ObjectToObjectConverter(com.haulmont.cuba.web.toolkit.ui.converters.ObjectToObjectConverter)

Example 2 with ObjectToObjectConverter

use of com.haulmont.cuba.web.toolkit.ui.converters.ObjectToObjectConverter in project cuba by cuba-platform.

the class WebTwinColumn method setDatasource.

@Override
public void setDatasource(Datasource datasource, String property) {
    super.setDatasource(datasource, property);
    component.setConverter(new ObjectToObjectConverter());
    assignAutoDebugId();
}
Also used : ObjectToObjectConverter(com.haulmont.cuba.web.toolkit.ui.converters.ObjectToObjectConverter)

Aggregations

ObjectToObjectConverter (com.haulmont.cuba.web.toolkit.ui.converters.ObjectToObjectConverter)2