This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes Issue when using shale commons validator with JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Issue when using shale commons validator with JSF" Watch "Issue when using shale commons validator with JSF" New topic
Author

Issue when using shale commons validator with JSF

Zaferullah Khan
Greenhorn

Joined: Mar 10, 2007
Posts: 16
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.

Issue:
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?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Issue when using shale commons validator with JSF
 
Similar Threads
Struts2 concepts doubts
struts validator. stoping on first validation error.
Struts 1.3 Configuring different set of validations for the same ActionForm
validator plugin and validate() method needs to use together
JSF integration with Struts Commons Validator