Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
7.0.0
-
None
-
None
Description
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
Attachments
Issue Links
- relates to
-
WICKET-5741 Ajax Form example is broken due to 9716f2a7e799133fdf3f7927d0093e6dfe16f529
- Resolved