• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Issue when using shale commons validator with JSF

Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using shale commons validator for performing some common validations like email, credit card, integer, float etc. validations. I am using commons validator only for server side validation as I am not allowed to use Javascript validation in the application. It is working fine except for the issue I have given below.

I am performing integer validation for a field which is bound to a backing bean field of type "int". For this field I have given integer commons validator tag (<val:integer/>). When I enter a non-integer value for this field and submit the form, I get a "Conversion error occurred" error message in the page instead of the specific error thrown from commons validator. It is because the JSF performs the conversion before validation and hence the conversion error is thrown. Can anyone suggest a way(if any) to overcome this issue and throw the specific error of commons validator?
Can't .... do .... plaid .... So I did this tiny ad instead:
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic