Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Commons validator - validwhen

 
Ashish Soni
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i do below validation using commons validator

If Field-1 is not null then either Field-2 is required or Field-3 is required. I am able to do for two fields using validwhen but not for three fields.

Please help.

Ashish
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I ll try like this ,



try it,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic