This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes Validation rule triggered for readonly or disabled textboxes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Validation rule triggered for readonly or disabled textboxes" Watch "Validation rule triggered for readonly or disabled textboxes" New topic
Author

Validation rule triggered for readonly or disabled textboxes

Meera Godse
Greenhorn

Joined: Jan 09, 2007
Posts: 28
Hi,
I am facing a problem with validator framework. I have 2 sets of fields - one for billing address and one for shipping address. By default both values are the same & hence all the textboxes under the shipping address (like addr,city,state,...) display the values but are disabled/readonly.
A checkbox with label "Same as billing address" can be selected/deselected by the user. When the checkbox is deselected, all textboxes are enabled for the user to input the correct address.
Now heres my problem -

I am using client-side validation. When the textboxes are in readonly state & I try to submit the form, the validation rules (of 'required','mask','integer' etc) are getting called ,although data is present in the textbox. Why cant it detect the data in the textboxes if they are marked readonly ? what is the solution ?
Pls advice.
Meera Godse
Greenhorn

Joined: Jan 09, 2007
Posts: 28
Forgot to mention ...... Results are as per Firefox Mozilla.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validation rule triggered for readonly or disabled textboxes
 
Similar Threads
Struts validation
<h:inputText tag in JSF not updating the managed bean values when attribute is readonly=true.
non-whitespace whitespace
Please help me regarding struts checkbox issue...
URGENT! Mulitbox problem!!