Closed dswitzer closed 12 years ago
Logic to determine failure messages:
On the server side:
On the client side:
Looks like each CRS contains a getDefaultFailureMessage() method which holds the text concatenation logic to build the default failure message.
So, it looks like the SRVs and CRSs could be updated to get that information from a resource bundle, rather than from hardcoded text.
This has now been implemented in the develop branch and will got out in the 1.0 release
This is related to issue #56 (https://github.com/ValidateThis/ValidateThis/issues/56).
Bob believes that VT uses the default error messages in jQuery's Validate library when using client-side validation. If this is the case, then I believe the code should be changed so that ValidateThis's failure message is used. This way the errors thrown are identical between the client-side and server-side validation.