regex « validation « JSF Q&A





1. JSF: Validation for Special characters    stackoverflow.com

I want to apply validation for Special characters like (,/'#~@[]}{+_)(*&^%$£"!\|<>) using the jsf validator. i have implemented the validator for number but now i want to make validator for Special characters.

value.toString().trim().matches();
What will ...

2. Regular expression pattern problem(JSF validation)    stackoverflow.com

I'm using <f:validateRegex pattern="[a-zA-Z]*"/> for ensuring that entered values contain alphabet only, it is working fine but it is not allowing to take space in the string.
How can i incorporate space ...

3. JSF 2.0 validateRegex with own validator message    stackoverflow.com

i am having a code similar to this:

<h:inputText id="email" value="#{managePasswordBean.forgotPasswordEmail}"
        validatorMessage="#{validate['constraints.email.notValidMessage']}"
        requiredMessage="#{validate['constraints.email.emptyMessage']}"
      ...

4. Custom Regex Validator    coderanch.com