- Validate client-side
- Validate server-side
- Process without changing pages (using AJAX)
But it does lack a basic validation type that would expect from such a library, a validation type that could allow for spaces. I took the alphaDecimal base type and added spaces.
That is exactly what I created, I called it using Jformer parlance alphaWords.
alphaWords - Accepts only letter, numbers and spaces.
Positive Validation Example : John Doe
Also extended the base type to handle periods and dashes and called it
alphaFirstNameRestricted - Accepts only letter, numbers, periods, spaces and dashes.
Positive Validation Example : John-Doe Jr.
No comments:
Post a Comment