You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by bu...@apache.org on 2014/08/17 11:25:18 UTC
svn commit: r919607 - in /websites/staging/deltaspike/trunk/content: ./
jsf.html
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><ds:preventDoubleSubmit/></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"><html</span> <span class="na">xmlns=</span><span class="s">"http://www.w3.org/1999/xhtml"</span>
+ <span class="na">xmlns:h=</span><span class="s">"http://java.sun.com/jsf/html"</span>
+ <span class="na">xmlns:ds=</span><span class="s">"http://deltaspike.apache.org/jsf"</span><span class="nt">></span>
+ <span class="nt"><h:head></span>
+ <span class="c"><!-- head content --></span>
+ <span class="nt"></h:head></span>
+ <span class="nt"><h:body></span>
+ <span class="nt"><h:form></span>
+ <span class="c"><!-- form content --></span>
+ <span class="nt"><ds:preventDoubleSubmit/></span>
+ <span class="nt"></h:form></span>
+ <span class="nt"></h:body></span>
+<span class="nt"></html></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>