• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Custom validator not validating

 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic