Author: buildbot
Date: Sun Aug 17 09:25:18 2014
New Revision: 919607

Log:
Staging update by buildbot for deltaspike

Modified:
    websites/staging/deltaspike/trunk/content/   (props changed)
    websites/staging/deltaspike/trunk/content/jsf.html

Propchange: websites/staging/deltaspike/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun Aug 17 09:25:18 2014
@@ -1 +1 @@
-1616780
+1618462

Modified: websites/staging/deltaspike/trunk/content/jsf.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/jsf.html (original)
+++ websites/staging/deltaspike/trunk/content/jsf.html Sun Aug 17 09:25:18 2014
@@ -201,6 +201,7 @@
 <li><a href="#using-a-custom-qualifier-for-jsf-exceptions">Using a custom 
qualifier for JSF Exceptions</a></li>
 </ul>
 </li>
+<li><a href="#double-submit-prevention">Double-Submit prevention</a></li>
 <li><a href="#support-of-ear-deployments">Support of EAR deployments</a></li>
 <li><a href="#hints">Hints</a></li>
 </ul>
@@ -1506,6 +1507,25 @@ This is possible via a CDI qualifier:</p
 </pre></div>
 
 
+<h1 id="double-submit-prevention">Double-Submit prevention</h1>
+<p>To avoid that the same content of a form gets submitted and therefore 
processed multiple times, it's possible to use the tag 
<code>&lt;ds:preventDoubleSubmit/&gt;</code>.
+As usual for DeltaSpike JSF-tags, the <code>ds</code> namespace is 
<code>http://deltaspike.apache.org/jsf</code>. Just add this tag within every 
JSF form-tag, you would like to safeguard.</p>
+<div class="codehilite"><pre><span class="nt">&lt;html</span> <span 
class="na">xmlns=</span><span 
class="s">&quot;http://www.w3.org/1999/xhtml&quot;</span>
+      <span class="na">xmlns:h=</span><span 
class="s">&quot;http://java.sun.com/jsf/html&quot;</span>
+      <span class="na">xmlns:ds=</span><span 
class="s">&quot;http://deltaspike.apache.org/jsf&quot;</span><span 
class="nt">&gt;</span>
+    <span class="nt">&lt;h:head&gt;</span>
+        <span class="c">&lt;!-- head content --&gt;</span>
+    <span class="nt">&lt;/h:head&gt;</span>
+    <span class="nt">&lt;h:body&gt;</span>
+        <span class="nt">&lt;h:form&gt;</span>
+            <span class="c">&lt;!-- form content --&gt;</span>
+            <span class="nt">&lt;ds:preventDoubleSubmit/&gt;</span>
+        <span class="nt">&lt;/h:form&gt;</span>
+    <span class="nt">&lt;/h:body&gt;</span>
+<span class="nt">&lt;/html&gt;</span>
+</pre></div>
+
+
 <h1 id="support-of-ear-deployments">Support of EAR deployments</h1>
 <p>Before using features described by this page, please ensure that you are 
aware of <a 
href="https://issues.apache.org/jira/browse/DELTASPIKE-335";>DELTASPIKE-335</a> 
and the corresponding impact.</p>
 <h1 id="hints">Hints</h1>


Reply via email to