wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 117
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.
 
jQuery in Action, 2nd edition
 
subject: Validate disabled fields
 
Similar Threads
Form validation in struts
validator plugin and validate() method needs to use together
Controlling Struts Validation Dynamically
Validation
required field...but only if enabled