PDA

View Full Version : Problems with Sliderfield and Binding



frankyro
25 Nov 2009, 2:24 AM
The Problem is, that the binding work in the direction model->Field but not in the other.

A Debug-Run shows, that the Method convertFieldValue is never called.



SFLaufzeit.setFireChangeEventOnSetValue(true);
.
.
rbinding.addFieldBinding(new FieldBinding(SFLaufzeit,"laufzeit"));
rbinding.getBinding(SFLaufzeit).setConvertor(new Converter(){

public Object convertModelValue(Object value){
return (Integer) value;
}

public Object convertFieldValue(Object value){
return (Integer) value;
}

});Where is my mistake ?