I am still able to enter values > 99 and I get no validation message until I leave the field.
Is this an error, or am I not understanding the behavior of setAutoValidate().
I modified SpinnerField (in the same Forms Example) to have 'setAutoValidate(true)', it doesn't prevent me from using the spinner to move the value above or below the expected value. What should be expected?
SpinnerField<Double> spinnerField = new SpinnerField<Double>(new DoublePropertyEditor());
FieldLabel spinLabel = new FieldLabel(spinnerField, "Duration(s)");
What I was hoping was the following
a. the spinner would not spin lower than the min or higher than the max
b. if you enter a value < the min, it would be replaced with the min, if you enter a value > max, it would be replaced with the max.
Now, I can see other behaviors for "b", but I would expect autoValidate to prevent that.
Am I understanding autoValidate for spinners, or am I missing something here as well?
As an implementation note, if the entered value cannot be parsed as the field's data, the validaters will have to work with a null instance. In many cases, this will mean no validation occurs. Validation errors will show up if the value still cannot be parsed after the user blurs the field.