This content has been marked as final.
Show 5 replies
-
1. Re: How to prevent double submit
gavin.king Jul 27, 2007 2:41 AM (in response to amitev)use a conversation
-
2. Re: How to prevent double submit
amitev Jul 27, 2007 3:17 AM (in response to amitev)But as far as i know the conversation is ended after the @End method is finished. If this is true, when the method is processing it could be invoked again, right?
-
3. Re: How to prevent double submit
gavin.king Jul 27, 2007 1:39 PM (in response to amitev)No, because conversations are single-threaded.
-
4. Re: How to prevent double submit
fhh Jul 27, 2007 2:14 PM (in response to amitev)Or you can use this javascript hack:
<script> function disableButtons(formular) { for (var iter = 0; iter < formular.elements.length; iter++) { if (formular.elements[iter].type == "submit" || formular.elements[iter].type == "button" || formular.elements[iter].type == "reset") { formular.elements[iter].disabled = true; } } } <script> <h:form onsubmit="disableButtonsAfterSubmit(this);">...</h:form>
Regards
Felix -
5. Re: How to prevent double submit
amitev Jul 28, 2007 5:05 AM (in response to amitev)Yeah. But it's ugly :)