Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
7.9.0
-
None
-
None
-
Ubuntu 16.04, Firefox 57.0.1 (64 bit)
Description
We had done the migration from wicket 6 to wicket 7.9 and after that NextButton with custom AjaxFormSubmitBehavior doesn't work as expected in FireFox (in other browsers it works well). After investigation I found that the reason of this issue lays in this code:
file: wicket-ajax-jquery.js:979
// handled, restore state and return true
form.action = originalFormAction;
form.target = originalFormTarget;
form.method = originalFormMethod;
form.enctype = originalFormEnctype;
form.encoding = originalFormEncoding;
For FF it looks like 'form.action' is receive 'originalFormAction' before request (submit) executing. If I comment out this code then 'form.submit()' will work well for FF and for other browsers.
P.S. Currently I moved this code to handleMultipartComplete but it doesn't cover cases when it will not be completed any way.