Hi Isomorphic,
We have such use case : we need to disable and clear value from some text field if a user inputs some value in some another spinner item and otherwise - enable text field when value in the spinner is null or empty.
We allow user to insert manually some value to the spinner item not using increase and decrease buttons, but we restrict him to insert manually only numbers, that's why we use setKeyPressFilter.
Also we use addChangeHandler on spinnerItem to disable another text field.
I reproduced the case on Enable & Disable showcase.I attached the changed java file.(I just added new fied Numbers which should disable/enable FullName item)
FormEnableDisableSample.java
So the problem happens when we input/clear (from keyboard) value into the Number then the FullName text field is not disabled/enabled. ChangeHandler from Numbers doesn't call at all.
Also I want to notice if I just use increase and decrease buttons of spinner item (Numbers) I see disabling of FullName field.But if I try to clear value of Numbers (with backspace) then FullName is not getting enabled again, only if I click on it.
I would like also to mention that if to replace SpinnerItem with just simple TextItem then the problem will be similar.But in this case the dependent field (FullName) is getting disabled, but after clearing value (from Numbers) FullName is not enabled again.
We tested also that there is no such problem with TextItem if we don't use keyPressFilter at all.
So it looks like it is common problem. Could you please check?
We use 5.0p.2017-01-18/PowerEditionDeployment smart gwt version, FF browser version 26.0
We have such use case : we need to disable and clear value from some text field if a user inputs some value in some another spinner item and otherwise - enable text field when value in the spinner is null or empty.
We allow user to insert manually some value to the spinner item not using increase and decrease buttons, but we restrict him to insert manually only numbers, that's why we use setKeyPressFilter.
Also we use addChangeHandler on spinnerItem to disable another text field.
I reproduced the case on Enable & Disable showcase.I attached the changed java file.(I just added new fied Numbers which should disable/enable FullName item)
FormEnableDisableSample.java
So the problem happens when we input/clear (from keyboard) value into the Number then the FullName text field is not disabled/enabled. ChangeHandler from Numbers doesn't call at all.
Also I want to notice if I just use increase and decrease buttons of spinner item (Numbers) I see disabling of FullName field.But if I try to clear value of Numbers (with backspace) then FullName is not getting enabled again, only if I click on it.
I would like also to mention that if to replace SpinnerItem with just simple TextItem then the problem will be similar.But in this case the dependent field (FullName) is getting disabled, but after clearing value (from Numbers) FullName is not enabled again.
We tested also that there is no such problem with TextItem if we don't use keyPressFilter at all.
So it looks like it is common problem. Could you please check?
We use 5.0p.2017-01-18/PowerEditionDeployment smart gwt version, FF browser version 26.0
Comment