Results 1 to 3 of 3

Thread: form commit and remote server update errors

  1. #1
    Join Date
    Dec 2005
    Posts
    7

    Default form commit and remote server update errors

    Hi,

    Just wondering how people are handling the following problem.
    After you commit your domain object in the form, and you call your dao/business layer to update the object on the server, how do you handle the case where the server update fails eg. due to server validation.

    Once the form is committed, you lose the ability to revert your changes or even to try and save again. You could try and save before you commit, but most of my dao methods take my domain object as a parameter so i need the domain object with all the new values in there.

    Hoping someone can share their experience/solution ?

    Thanks

    Huy

  2. #2
    Join Date
    Aug 2007
    Posts
    4

    Default

    I also have the same problem. A quick search revealed a bunch of similar questions but no answers. Does anyone have a solution or idea for a workaround for this?

    cheers /B

    BTW, great work on the new release and the documentation efforts by all involved!

  3. #3
    Join Date
    Mar 2007
    Location
    Oudenaarde
    Posts
    294

    Default

    Hmm... good question. When that happens in my applications, I just get the latest correct version again from the server and reload that.
    You could however (I should check to be for sure) force the dirty property of a formmodel and recommit.
    I'll dig into this problem and get back to you asap
    MSN: PM me please
    Skype: doclo_lieven

    Spring Rich Client Project Lead

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •