This content has been marked as final.
Show 3 replies
-
1. Re: Multiple clicks, multiple conversations
thejavafreak Sep 15, 2008 12:30 AM (in response to wilczarz.wilczarz.gmail.com)Disable the button while the form is in the process. Enable it when it is done.
-
2. Re: Multiple clicks, multiple conversations
wilczarz.wilczarz.gmail.com Sep 16, 2008 10:31 AM (in response to wilczarz.wilczarz.gmail.com)What if a client has javascript disabled in the browser? I was hoping there is a server-side solution for this..
-
3. Re: Multiple clicks, multiple conversations
thejavafreak Sep 16, 2008 1:48 PM (in response to wilczarz.wilczarz.gmail.com)AFAIK there is not yet any solution from Seam for handling double form submission. But perhaps you can create a flag variable in your component for detecting whether user has submitted their form. Also if you really concern about the duplicate data, try to use entityManager.merge instead of entityManager.persist