4 Replies Latest reply on Jul 26, 2007 2:53 AM by Adrian Mitev

    Double submit problem

    Adrian Mitev Master

      Hi all! I have the following situation:

      Page for updating information (adding new associations to a list) and update button the action method is

       @In @Out
       private Project project;
       public void updateProject() {
       project = em.merge(project);

      The problem is that if the user submits the form more than once before the new page is displayed, the state of the entity is propagated to the db more than one time. Is there a way to solve this?