| Author |
Form forgets data after validate method returns errors
|
Eric Juneau
Greenhorn
Joined: Jul 13, 2009
Posts: 28
|
|
Is there a way to retain the non-writable data in a form without a bunch of hidden fields?
Say I have a form that contains various fields, some are read-only, some are writable. If the validate method in the form executes and returns an error, all the data on the form, except for the writable fields disappears. Is there a way to retain this data without having a html:hidden field for each read-only field?
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26193
|
|
Eric,
Welcome to JavaRanch!
You do need the hidden fields to submit the data to the server. You can then store it in the session to avoid keeping it from being sent back and forth extra times though.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
 |
|
|
subject: Form forgets data after validate method returns errors
|
|
|