Announcement Announcement Module
No announcement yet.
form commit and remote server update errors Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • form commit and remote server update errors


    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 ?



  • #2
    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
      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