File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Custom validator not validating Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Custom validator not validating" Watch "Custom validator not validating" New topic
Author

Custom validator not validating

Michal Glowacki
Ranch Hand

Joined: Mar 14, 2006
Posts: 114
Hi

I made my own validator of validate numeric input in h:datatable. It looks like this:



JSP:



and in faces-config.xml




I debug the application, and validator is used only for valid (what for...) values. When I got 3 rows in datatable and enter -2, 3, 4 only for the last two fields validate method is invoked. This results in allowing bad data. What can be wrong?

Regards,
Michal

PS. I use ajax4jsf and a4j:commandButton to submit data. And of course I have no other validation errors on the page.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Custom validator not validating
 
Similar Threads
Problem jsf cutom validation -- validate method dont call
JSF Validation not working
empty space validation
How to use validation with example need
View model ignores custom validation for Double values