This week's book giveaway is in the Object Relational Mapping forum. We're giving away four copies of Pro JPA 2: Mastering the Java Persistence API and have Mike Keith and Merrick Schincariol on-line! See this thread for details.
I have an application in which I have to do a server-side validation. It happens because according to the selected project (entity) in a drop-down list a certain period of date (text box) is allowed. My problem is that I can't keep the fields with the value inserted if that validation occurs to return false. How can I "save" the values in the fields so when the validation completes they still have them?
That's what I have in mind. My problem is where (and how) do I store the values typed by the user before he had clicked the confirm button. The fields are initially blank.
Why do you care what's in the fields before submission? Only the values that are submitted are important -- and you obviously have those in hand as you are validating them.
This message was edited 1 time. Last update was at by Bear Bibeault