You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Simon Kitching (JIRA)" <de...@myfaces.apache.org> on 2006/01/24 23:05:09 UTC
[jira] Created: (MYFACES-1058) Disable submit controls after first
submit performed
Disable submit controls after first submit performed
----------------------------------------------------
Key: MYFACES-1058
URL: http://issues.apache.org/jira/browse/MYFACES-1058
Project: MyFaces
Type: Improvement
Reporter: Simon Kitching
Priority: Minor
Impatient users can click on a command button or link multiple times, causing multiple HTML submit operations. This causes all sorts
of complications.
It would be nice if the standard javascript generated by command components would disable submitting after the first time.
I believe this is fairly simple: set a javascript variable to "true" when the form.submit is performed. Test this variable whenever
a submit is to be performed, and ignore it if the var is set.
On a related issue, multiple submits from the same user cause nasty problems at the back end because the view tree is not thread-safe.
Multiple submits cause multiple servlet engine threads to run in parallel, accessing the same view tree. A solution is to synchronize
on the user's session object; perhaps this should be part of standard MyFaces functionality?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira