I have a subclass of ValidationTextBox where I override the onChange-function. The problem is that it doesn't get triggered if there is a validation error.
Lets say I have a field that is required and the value of the field is "a". If I change it to "b" and switches focus to another field, onChange gets executed, but if I remove the "b" and switches focus then onChange does not get executed and instead a validation error is displayed.
onChange: function(newValue) {
console.log("running onChange on " + this.id + " with new newValue = " + newValue);
this.inherited("onChange",arguments); // call superclass
}
console.log("running onChange on " + this.id + " with new newValue = " + newValue);
this.inherited("onChange",arguments); // call superclass
}

Any ideas? I'm using Dojo
Any ideas?
I'm using Dojo 1.2 from Google CDN.
example showing the issue
Ok, so here's an example that shows the issue:
http://tinyurl.com/6h3ktw
The field only allows uppercase letters A-Z.
1. Initial value is "ABC"
2. Change the value to "ABCD" and press the Submit button
3. Pay attention to the console printouts
4. Change the value to "ABCDe" and press the Submit button
6. Pay attention to the console printouts
The value has been changed, but the onChange function hasn't been called.
It it supposed to work this way? I'd prefer the onChange to be called everytime the value changes. But maybe there are some other reason for it not to?