gatein/gatein-portal — pull request #254 by vrockai (2012-11-05 13:53:12+00:00)
Title: GTNPORTAL-2560 new validation for first and last name allowing some special chars

There are four places, where you can change the 1st/lastname. Validation on those places/forms is not unified. This is the list of forms where you can find those inputs (there is a time in parenthesis for how long there is a strict validation):

* create user - organization -> new staff (1 year)
* edit user - organization -> user management (1 month)
* user profile - top right after logging, clicking on name (no strict validation)
* register user - top right without logging (1 year)

This strict validation basically doesn't allow anything else beside spaces and characters. I've added new validator, which will allow two more special characters "-" (Jean-Claude) and "'" (O'Connor). This validator is applied on all four places.

Side effects: this change makes the class NaturalLanguageValidator not used anymore.