• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validation of enable/disabled form field

 
sudhakar Tadepalli
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using struts validation. I have a checkbox in the form which will be enabled and disables based and the user role. But I am having trouble validationg this checkbox.Any suggestions please ?

Thanks
Sudhakar
 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the validwhen validator rule.
 
sudhakar Tadepalli
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thsi application in productio nand using old version of struts jar. I can not use whalidWhen. But still I am not sure how this will ignore validation when filed is disabled and validates when filed is enabled. How it knows ?

-Sudhakar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic