You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by sv...@apache.org on 2015/07/31 18:40:53 UTC

wicket git commit: WICKET-5957 added note for AjaxFormSubmitBehavior prevent default

Repository: wicket
Updated Branches:
  refs/heads/master 23955214b -> d65edd815


WICKET-5957 added note for AjaxFormSubmitBehavior prevent default


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/d65edd81
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/d65edd81
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/d65edd81

Branch: refs/heads/master
Commit: d65edd8150698289c4cca86f558ed3482217d220
Parents: 2395521
Author: Sven Meier <sv...@apache.org>
Authored: Fri Jul 31 18:38:50 2015 +0200
Committer: Sven Meier <sv...@apache.org>
Committed: Fri Jul 31 18:39:51 2015 +0200

----------------------------------------------------------------------
 wicket-user-guide/src/docs/guide/ajax/ajax_3.gdoc | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/d65edd81/wicket-user-guide/src/docs/guide/ajax/ajax_3.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/ajax/ajax_3.gdoc b/wicket-user-guide/src/docs/guide/ajax/ajax_3.gdoc
index 853109c..262f259 100644
--- a/wicket-user-guide/src/docs/guide/ajax/ajax_3.gdoc
+++ b/wicket-user-guide/src/docs/guide/ajax/ajax_3.gdoc
@@ -77,6 +77,10 @@ add(form);
 add(submitButton);
 {code}
 
+{note}
+@AjaxFormSubmitBehavior@ does not prevent JavaScript default event handling. For @<input type="submit">@ you'll have to call @AjaxRequestAttributes#setPreventDefault(true)@ to prevent the form from being submitted twice.
+{note}
+
 h3. AjaxFormComponentUpdatingBehavior
 
 This behavior updates the model of the form component it is attached to when a given event occurs. The standard form submitting process is skipped and the behavior validates only its form component.