It's not a secret anymore!*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validate disabled fields
 
Similar Threads
required field...but only if enabled
validator plugin and validate() method needs to use together
Controlling Struts Validation Dynamically
Form validation in struts
Validation