Hi,
I am using the new validation option in 3.5
I am using a GlobalMethodValidator to check for a certain value.
If it is correct i return true otherwise i return false.
The “return false” causes the onerror method of the solution to be fired.
I can trap this validation error in the onerror method by checking for :
ServoyException.INVALID_INPUT
and give the user an appropriate message.
This works fine.
The strange thing i notice is that when the onerror method is fired, the previous value is restored in the field i am validating.
However the field is still in invalid state, so i can not tab out of it until
i type in a different value.
Has anyone used this kind of validation and noticed the same behavior ?