Community
Participate
Working Groups
If a CComboRidget has an OutputMarker and the programmer changes the selected value, the method updateFromModel will not work correct. The selected value is not displayed in the text field of the combo. The value of the text field does not change. This is because the inner class ValueChangeValidator checks whether the Ridget is output-only. In the SWT ExampleApplication I changed the sub-module "CCombo" so that this problem can be reproduced. Press the check box "Use always second person". The combo is now output-only and the second person of the list is selected (in the model; see console). But in the text field of the combo you will see the old value. I have added a workaround in the method "updateFromModel" of the class AbstractComboRidget. But I commented out. I don't know if this is a good solution.
Reproducible. Happens with ComboRidget too.
I will address this in the next sprint (i.e. next week).
Thanks for reporting this. The idea for the workaround was correct. I've refined it by introducing a forceChange flag (so that marker listeners are not triggered by setOutputOnly). Fixed in HEAD.