Solved, the above code was OK !
My test model data was wrong : It had minimum and maximum swapped (min =100, max = -100).
Doh!
This had the effect that I could edit the existing value (that was out of range) without limits, but after deleting all characters i could not enter anything.
Oh well, above code may be useful to someone, it works fine when fed with the correct parameters ;-).
↧
[SOLVED] IntValidator does not check range correctly after assignment of min/max range from delegate
↧