svenmeier opened a new pull request #463:
URL: https://github.com/apache/wicket/pull/463


   In Wicket 7.x a form's `onsubmit()` was called for multipart Ajax submits 
only. This made sense, since multipart requests were submitted with a hidden 
form.
   
   Since Wicket 8.x `onsubmit()` is no longer called, since a multipart Ajax 
submit is now performed like any other Ajax request. For consistency I would 
not want to go back to calling `onsubmit()` for multipart submits only.
   But we can't call `onsubmit()` for *all* Ajax submit either, as this would 
be a change to a much more frequent usage.
   
   Thus I propose to make this configurable with a new 
`AjaxFormSubmitBehavior#shouldCallJavaScriptOnsubmit()`, default would be 
`false`.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to