aspose file tools*
The moose likes Struts and the fly likes Validate multiple fields base on a requiredif Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validate multiple fields base on a requiredif" Watch "Validate multiple fields base on a requiredif" New topic
Author

Validate multiple fields base on a requiredif

CJ Jones
Greenhorn

Joined: Jan 19, 2004
Posts: 1
Hello,
I have to validate a set of form fields based on the requiredIf basic validator. However, I would like to group the field validation instead of having the validation framework validate each field separately.
For example: if the billing type equals �CC� I do a set of validation checks on the �CC� fields. However, I have to add the requiredIf check on each field element. Is there a way to group fields within a requiredIf check? I am seeing a HUGE performance hit within my application because of this redundant checking.


Thanks for any help.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Validate multiple fields base on a requiredif