Hi,
In the class "RangeValidator", there is a static class variable called "mErrorMessage".
It shouldn't be static as if you have multiple "RangeValidator", it will only keep the last value.
In my case i had 3 RangeValidator and the same message was displayed three times. Removing "static" modifier fix the issue.
Actually, i'm also wondering why "getMessage" is overrided in "RangeValidator" while it is not in others validators. :)
Regards,
Clément.
Hi,
In the class "RangeValidator", there is a static class variable called "mErrorMessage".
It shouldn't be static as if you have multiple "RangeValidator", it will only keep the last value.
In my case i had 3 RangeValidator and the same message was displayed three times. Removing "static" modifier fix the issue.
Actually, i'm also wondering why "getMessage" is overrided in "RangeValidator" while it is not in others validators. :)
Regards,
Clément.