This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes My Custom Validator is not working as i want Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "My Custom Validator is not working as i want" Watch "My Custom Validator is not working as i want" New topic
Author

My Custom Validator is not working as i want

Yahya Arshad
Greenhorn

Joined: May 15, 2011
Posts: 26




i have made a custom validator for mobile number that entered mobile number should not greater than 12 and must have - charachter at location 4 (0321-3809083 for example) but there when i run it see only length and '-' charachter at location 4 but if it contatins other than digit on other place it take it ok

please help me to findout a bug

also if any one can give me link t o findout the Pattern way...
please reply thanks in advance
 
wood burning stoves
 
subject: My Custom Validator is not working as i want
 
Similar Threads
Problem jsf cutom validation -- validate method dont call
JSF validation not validating
how to read the label name for a component
display error message
How to use validation with example need