Author: gpetracek
Date: Sun Aug 17 09:25:09 2014
New Revision: 1618462

URL: http://svn.apache.org/r1618462
Log:
updated content

Modified:
    deltaspike/site/trunk/content/jsf.mdtext

Modified: deltaspike/site/trunk/content/jsf.mdtext
URL: 
http://svn.apache.org/viewvc/deltaspike/site/trunk/content/jsf.mdtext?rev=1618462&r1=1618461&r2=1618462&view=diff
==============================================================================
--- deltaspike/site/trunk/content/jsf.mdtext (original)
+++ deltaspike/site/trunk/content/jsf.mdtext Sun Aug 17 09:25:09 2014
@@ -1458,6 +1458,26 @@ This is possible via a CDI qualifier:
         }
     }
 
+# Double-Submit prevention
+
+To avoid that the same content of a form gets submitted and therefore 
processed multiple times, it's possible to use the tag 
`<ds:preventDoubleSubmit/>`.
+As usual for DeltaSpike JSF-tags, the `ds` namespace is 
`http://deltaspike.apache.org/jsf`. Just add this tag within every JSF 
form-tag, you would like to safeguard.
+
+
+    <html xmlns="http://www.w3.org/1999/xhtml";
+          xmlns:h="http://java.sun.com/jsf/html";
+          xmlns:ds="http://deltaspike.apache.org/jsf";>
+        <h:head>
+            <!-- head content -->
+        </h:head>
+        <h:body>
+            <h:form>
+                <!-- form content -->
+                <ds:preventDoubleSubmit/>
+            </h:form>
+        </h:body>
+    </html>
+
 
 # Support of EAR deployments
 Before using features described by this page, please ensure that you are aware 
of [DELTASPIKE-335](https://issues.apache.org/jira/browse/DELTASPIKE-335) and 
the corresponding impact.


Reply via email to