This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes Validate disabled fields Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validate disabled fields" Watch "Validate disabled fields" New topic
Author

Validate disabled fields

Luke Zechariah
Ranch Hand

Joined: Sep 27, 2005
Posts: 123
Hello,

I am having a text field and in some cases it is enabled and some cases it is disabled. So during validation, it works fine for a enabled field. But when disabled struts should not validate the field, but its still performing validation on the disabled field.

Is there a way so that struts will know not validate the field if its disabled.



Thanks,
Lk.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Validate disabled fields