I would like to give the user a warning (and a chance to confirm) when he changes the value of a ComboBox (in single-select mode). This applies only to changes via the GUI, it shouldn’t fire for programmatic changes to the selection.
The ValueChange event happens
after
the change has been carried out so I guess I cannot use that one.
How can I accomplish this ? I’m thinking I need to subclass ComboBox and override something (perhaps
setInternalValue()
?) but I’m not quite sure how to distinguish GUI changes to the value from programmatic changes to the value. Also not sure this is the correct path ?