You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jens Weber (JIRA)" <ji...@apache.org> on 2015/07/31 15:14:04 UTC
[jira] [Created] (WICKET-5957) AjaxFormSubmitBehavior does not set
setPreventDefault(true)
Jens Weber created WICKET-5957:
----------------------------------
Summary: AjaxFormSubmitBehavior does not set setPreventDefault(true)
Key: WICKET-5957
URL: https://issues.apache.org/jira/browse/WICKET-5957
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 7.0.0
Reporter: Jens Weber
In Wicket 7.0 the AjaxEventBehavior methods where adapted to the jQuery once with setPreventDefault and EventPropagation.BUBBLE.
In Wicket 6.0 the default behavior was setAllowDefault(false), which migrates to setPreventDefault(true). In Wicket 7.0 setPreventDefault(false) is the default setting.
In my opinion it is a bug if the AjaxFormSubmitBehavior does not set PreventDefault to true, because if I add the behavior I am expecting an ajax form submit and not a regular form submit. Otherwise I need to set for each AjaxFormSubmitBehavior usage the setPreventDefault(true).
If it is not a bug than I the documentation must be adapted at AjaxFormSubmitBehavior in order to do a Ajax Form Submit.
https://ci.apache.org/projects/wicket/guide/7.x/guide/single.html#ajax_3
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)