Results 1 to 3 of 3

Thread: Restore old field value after Validation

  1. #1
    Join Date
    Jul 2008
    Posts
    5

    Default 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?

  2. #2
    Join Date
    Nov 2005
    Posts
    114

    Default

    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

  3. #3
    Join Date
    Jul 2008
    Posts
    5

    Default

    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
  •