-
Jul 25th, 2008, 01:35 AM
#1
Restore old field value after Validation
Hallo,
i have a question.
I have a formbackingobject and validate the inputs.
At the moment, will be the new value set in the object.
It is possible to restore the old value, or is there a nice
workaround for this problem?
-
Jul 25th, 2008, 04:15 AM
#2
What exactly you mean by old and new value?
New value I guess is the one being under validation and the old one whatever form backing object becomes on initial Get.
You can store in session the old value before formBackinObject returns and checking if exists when starting but why do you need this? The user should be able to see the rejected value for spotting what did wrong
-
Jul 25th, 2008, 04:18 AM
#3
i found a resolution, it also with session, but a little bit differnt.
with the validation is the problem, it runs after the initialization of the formbackingobject of the controller. so you cannot restore the value before the validating.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules