0 Replies Latest reply on Apr 13, 2007 6:07 PM by John

    Ajax and concurrency

    John Newbie

      Hi!

      I have a SFSB with like following:

      
      ......
      Doc doc;
      
      @Begin
      public void getDoc()
      {
       doc=.....
      }
      ....
      public void preView()
      {
      
      ....
      
      }
      
      @End
      public String save()
      {
       if (doc!=null)
       update();
       else
       new();
      
      }
      
      


      In my page there are a Preview Button and a Save button,

      Sometimes after clicking the Preview button, if I click the save button too quick. I'll get the message: Conversation is end .... or is busy..... This is not a problem, the real problem is I got a new duplicated reocord of doc in the DB when I tried to edit the doc.