wood burning stoves 2.0*
The moose likes Struts and the fly likes Validation of enable/disabled form field Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validation of enable/disabled form field" Watch "Validation of enable/disabled form field" New topic
Author

Validation of enable/disabled form field

sudhakar Tadepalli
Ranch Hand

Joined: Dec 27, 2001
Posts: 130
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

Joined: Oct 29, 2003
Posts: 254
You can use the validwhen validator rule.


http://www.goodercode.com
SCJP 1.4
sudhakar Tadepalli
Ranch Hand

Joined: Dec 27, 2001
Posts: 130
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
 
jQuery in Action, 2nd edition
 
subject: Validation of enable/disabled form field